Re: Question about system call

2007-03-13 Thread Chas Owens
On 3/13/07, Paul <[EMAIL PROTECTED]> wrote: On Tue, March 13, 2007 2:38 am, yitzle wrote: > Where you doing "rm -f $file" or `rm -f $file`? > You need to use "backticks" for system commands. If memory serves me, back ticks are only needed inside a system command for UNIX commands and regular tic

Re: Question about system call

2007-03-13 Thread Paul
On Tue, March 13, 2007 2:38 am, yitzle wrote: > Where you doing "rm -f $file" or `rm -f $file`? > You need to use "backticks" for system commands. If memory serves me, back ticks are only needed inside a system command for UNIX commands and regular ticks specifying the system command within the Pe

Re: Question about system call

2007-03-13 Thread Ken Foskey
On Tue, 2007-03-13 at 02:29 -0400, Mathew wrote: > I recently forgot about the unlink function and had been trying to > remove files using the less efficient system call to run "rm -f > /path/to/files". I found, however, that this didn't work at all. > > I've since replaced it with unlink and get

Re: Question about system call

2007-03-13 Thread Madan Kumar Nath
Hello, 1. Check that the "rm" command is not mapped to "rm -i" or similar alias. if so them the "rm -f" command from system() command will not work. Thanx Madan Mathew wrote: I recently forgot about the unlink function and had been trying to remove files using the less effic

Re: Question about system call

2007-03-12 Thread yitzle
Where you doing "rm -f $file" or `rm -f $file`? You need to use "backticks" for system commands. On 3/13/07, Mathew <[EMAIL PROTECTED]> wrote: I recently forgot about the unlink function and had been trying to remove files using the less efficient system call to run "rm -f /path/to/files". I fo

Re: Question about system call

2007-03-12 Thread Jeff Pang
> >I recently forgot about the unlink function and had been trying to >remove files using the less efficient system call to run "rm -f >/path/to/files". I found, however, that this didn't work at all. > >I've since replaced it with unlink and get the results one can expect to >get so it isn't a m

Question about system call

2007-03-12 Thread Mathew
I recently forgot about the unlink function and had been trying to remove files using the less efficient system call to run "rm -f /path/to/files". I found, however, that this didn't work at all. I've since replaced it with unlink and get the results one can expect to get so it isn't a matter of