Re: "safe" system()?

2003-03-28 Thread Dan Kogai
On Saturday, Mar 29, 2003, at 03:23 Asia/Tokyo, Rich Morin wrote: Let's say that I want to use a command (e.g., md5) on a file. No problem; just use: system("md5 $file"); Except that the file name could contain all manner of white space characters, shell wildcard characters, etc. Is there a mo

Re: "safe" system()?

2003-03-28 Thread Nathan Torkington
Rich Morin writes: > Let's say that I want to use a command (e.g., md5) on a file. No > problem; just use: > >system("md5 $file"); > > Except that the file name could contain all manner of white space > characters, shell wildcard characters, etc. Is there a module that > deals with this sor

Re: "safe" system()?

2003-03-28 Thread David Dierauer
Wouldn't it work to do the system call like this: system( 'md5',$file ); since passing the params as a list should bypass the shell? -- David Dierauer Database Programmer CoreComm [EMAIL PROTECTED] 517-324-8957 On Fri, 28 Mar 2003, Jerry LeVan wrote: > > Let's say that I want to use a command

Re: "safe" system()?

2003-03-28 Thread Bill Stephenson
on 3/28/03 12:23 PM, Rich Morin at [EMAIL PROTECTED] wrote: > Let's say that I want to use a command (e.g., md5) on a file. No > problem; just use: > > system("md5 $file"); > > Except that the file name could contain all manner of white space > characters, shell wildcard characters, etc. Is th

Re: "safe" system()?

2003-03-28 Thread Jerry LeVan
> Let's say that I want to use a command (e.g., md5) on a file. No > problem; just use: > > system("md5 $file"); > > Except that the file name could contain all manner of white space > characters, shell wildcard characters, etc. Is there a module that > deals with this sort of thing (e.g., wra

"safe" system()?

2003-03-28 Thread Rich Morin
Let's say that I want to use a command (e.g., md5) on a file. No problem; just use: system("md5 $file"); Except that the file name could contain all manner of white space characters, shell wildcard characters, etc. Is there a module that deals with this sort of thing (e.g., wrapping each argum