how to make script interact with another script

2006-03-20 Thread Chason Hayes
How can I get a script to pipe data to another program, wait for a response, then send more data etc. For example, from a script, I want to run smbclient then send it the username, password, and then some commands. (I know there are better ways to achieve this functionality, it is the principle th

Re: Literal Escaped Octets

2006-02-08 Thread Chason Hayes
On Wed, 08 Feb 2006 00:57:45 -0500, Steve Holden wrote: > Chason Hayes wrote: >> On Tue, 07 Feb 2006 01:58:00 +, Steve Holden wrote: >> >> >>>Chason Hayes wrote: >>> >>>>On Mon, 06 Feb 2006 13:39:17 +, Steve Holden wrote: >>> &

Re: Literal Escaped Octets

2006-02-07 Thread Chason Hayes
On Tue, 07 Feb 2006 01:58:00 +, Steve Holden wrote: > Chason Hayes wrote: >> On Mon, 06 Feb 2006 13:39:17 +, Steve Holden wrote: > [...] >>> >>>The URL you reference is discussing how you represent arbitrary values >>>in string literals. If you a

Re: Literal Escaped Octets

2006-02-07 Thread Chason Hayes
On Tue, 07 Feb 2006 15:06:49 +, Bengt Richter wrote: > On Mon, 06 Feb 2006 04:40:31 GMT, Chason Hayes <[EMAIL PROTECTED]> wrote: > >>I am trying to convert raw binary data to data with escaped octets in >>order to store it in a bytea field on postgresql server. I cou

Re: Literal Escaped Octets

2006-02-06 Thread Chason Hayes
On Sun, 05 Feb 2006 21:07:23 -0800, Alex Martelli wrote: > Chason Hayes <[EMAIL PROTECTED]> wrote: >... >> easily in c/c++ but I need to do it in python. I am not sure how to read >> and evaluate the binary value of a byte in a long string when it is a non >> p

Re: Literal Escaped Octets

2006-02-06 Thread Chason Hayes
On Mon, 06 Feb 2006 13:39:17 +, Steve Holden wrote: > Chason Hayes wrote: >> I am trying to convert raw binary data to data with escaped octets in >> order to store it in a bytea field on postgresql server. I could do this >> easily in c/c++ but I need to do it in python.

Literal Escaped Octets

2006-02-05 Thread Chason Hayes
I am trying to convert raw binary data to data with escaped octets in order to store it in a bytea field on postgresql server. I could do this easily in c/c++ but I need to do it in python. I am not sure how to read and evaluate the binary value of a byte in a long string when it is a non printable