Re: Passing variables to and from custom programs

2010-02-07 Thread Chris F.A. Johnson
On Sun, 7 Feb 2010, Mike Stroyan wrote: > On Sat, Feb 06, 2010 at 05:35:21PM -0800, DennisW wrote: > > On Feb 6, 5:37 pm, djackn wrote: > > > Result = myIpExec(${IPaddr1} ${IPaddr2} ${IPaddr3} ${IPaddr4}) > > > > > > myIpExec is a c program that normally uses scanf to prompt the user > > > fo

Re: Passing variables to and from custom programs

2010-02-07 Thread Mike Stroyan
On Sat, Feb 06, 2010 at 05:35:21PM -0800, DennisW wrote: > On Feb 6, 5:37 pm, djackn wrote: > >     Result = myIpExec(${IPaddr1} ${IPaddr2} ${IPaddr3} ${IPaddr4}) > > > > myIpExec is a c program that normally uses scanf to prompt the user > > for the IP addresses and returns 0 or 1. > > I plan to

Re: Passing variables to and from custom programs

2010-02-06 Thread DennisW
On Feb 6, 5:37 pm, djackn wrote: > May I used the following in a bash script to pass variables to myIpExec? > >     Result = myIpExec(${IPaddr1} ${IPaddr2} ${IPaddr3} ${IPaddr4}) > > myIpExec is a c program that normally uses scanf to prompt the user > for the IP addresses and returns 0 or 1. > I