Re: Need help grabbing program output.

2002-04-12 Thread Jeff 'japhy' Pinyan
On Apr 12, drieux said: >On Friday, April 12, 2002, at 09:09 , bob ackerman wrote: >[..] >>> $tmp = system $selection; >>> >> >> try: >> $tmp = `$selection`; >> >> to get back results that command sends to stdout. >> >>> return $tmp; > >what is the 'special variable' that would get set th

Re: Need help grabbing program output.

2002-04-12 Thread drieux
On Friday, April 12, 2002, at 09:09 , bob ackerman wrote: [..] >> $tmp = system $selection; >> > > try: > $tmp = `$selection`; > > to get back results that command sends to stdout. > >> return $tmp; what is the 'special variable' that would get set that would return the exit code of runn

Re: Need help grabbing program output.

2002-04-12 Thread bob ackerman
On Friday, April 12, 2002, at 08:05 AM, Timothy A. DeWees wrote: > Hello, > > I am trying to convert a shell script to perl because I need to do > some > binary math, and I want to add more flexibility in general.I'm a bit > new > to perl, but here is my question (don't laugh). > > I

Re: Need help grabbing program output.

2002-04-12 Thread Jeff 'japhy' Pinyan
On Apr 12, Timothy A. DeWees said: >I am trying to execute an external process (in this case dialog). Dialog >displays a menu to the user and will output there selection via stdout or >stderr. I want to take what the system call to dialog will pass to stdout >or stderr and assign it to a string

Need help grabbing program output.

2002-04-12 Thread Timothy A. DeWees
Hello, I am trying to convert a shell script to perl because I need to do some binary math, and I want to add more flexibility in general.I'm a bit new to perl, but here is my question (don't laugh). I am trying to execute an external process (in this case dialog). Dialog displays a men