Re: Passing options to command in a system call

2004-10-01 Thread Jan Eden
Thanks, Errin, Doug and Bob, Errin Larsen wrote on 01.10.2004: >On Fri, 1 Oct 2004 17:41:50 +0200, Jan Eden <[EMAIL PROTECTED]> >wrote: >>How can I pass an option to system's first argument in a setting >>like this? > >This is ironic: > >>If all else fails read the instructions. - Donald Knuth

Re: Passing options to command in a system call

2004-10-01 Thread Errin Larsen
On Fri, 1 Oct 2004 17:41:50 +0200, Jan Eden <[EMAIL PROTECTED]> wrote: > Hi, Hello! <> > > How can I pass an option to system's first argument in a setting like this? > > (I know I can use a module instead of calling wget, but this is a more general > issue.) > > Thanks, > > Jan > -- Th

Re: Passing options to command in a system call

2004-10-01 Thread Doug Lewis
I haven't used the wget program before, but try adding a comma after your -O. I did that and I got it working. Jan Eden <[EMAIL PROTECTED]> wrote:Hi, I try to call wget using system like this: system("wget -O /dev/null", "http://janeden.org/test/file.txt";); This does not work: Can't exec "w

RE: Passing options to command in a system call

2004-10-01 Thread Bob Showalter
Jan Eden wrote: > Hi, > > I try to call wget using system like this: > > system("wget -O /dev/null", "http://janeden.org/test/file.txt";); > > This does not work: > > Can't exec "wget -O /dev/null": No such file or directory at > ./wgetrec.pl line 6. > > Ok, so how about this: > > system("wg