[squeak-dev] debugging PipeableOSProcess

Jimmie Houchin j.squeak at cyberhaus.us
Thu Mar 6 22:08:07 UTC 2008


K. K. Subramaniam wrote:
> On Thursday 06 March 2008 4:21:17 am Jimmie Houchin wrote:
>> Hello,
>>
>> I am having a very strange problem using PipeableOSProcess.
>>
>> I created a method similar to below. It worked fine. Still does.
>>
>> updateLocalDirectory
>>
>>     | c d p |
>>
>>     c := 'wget http://www.url.com/dir1'.
>>     d := '/home/jimmie/VL/dl/'.
>>     p := PipeableOSProcess command: c environment: nil workingDir: d
>> input: nil output: nil error: nil errorPipelineStream: nil.
>>     p closePipes
>>
>>
>> I attempted to use the same method to download repositories for other
>> directories on the same website. The only change was from dir1 to dir2.
>>
>> Running the command in a shell with dir2 works just fine. Copying the
>> command from Squeak and pasting in the shell, works fine.
>>
>> But when I run the method in a workspace. Squeak just sits and waits on
>> wget which at some point just stops. It doesn't exit or finish.
> Are you using any web-proxy in your shell environment ($http_proxy)? You will 
> have to use the same setting in the environment: too. You may also want to 
> use the -q option (quiet) when running wget this way.

Hello,

I have done no customizing of my shell. It is simply the default bash
which comes with Ubuntu Gutsy Gibbon.

Dave got me going again.

Thanks for the reply.

Jimmie



More information about the Squeak-dev mailing list