Re: error with external command

2002-12-12 Thread John W. Krahn
Sam Harris wrote: > > I am having hard time figuring out why one of my lines is not working: > > system"find . -ctime -1 -exec cp {} > /opt/WWW/web_stats/logs/daily/newfiles \"; > > the error is that : > Unquoted string "opt" may clash with future reserved word at > ./process_web_log_files.pl li

Re: error with external command..

2002-12-12 Thread Sam Harris
The way how it is in my code is on one line, the slash at the end has to be there on unix command line for it to work !!??? so the line is : system"find . -ctime -1 -exec cp {} /opt/WWW/web_stats/logs/daily/newfiles \"; Sam Harris, Internet Services Franklin University 201 S. Grant Avenue Colum

Re: error with external command

2002-12-12 Thread Rob Dixon
Hi Sam I'm a Windows person so I can help a lot, but I assume the command isn't broken over two lines as it arrived to me? Also your backslash at the end (it is part of the command I presume) should be \\". As it is you've just escaped the closing double-quote to include it in the command string,

Re: error with external command

2002-12-12 Thread Ramprasad A Padmanabhan
Sam Harris wrote: I am having hard time figuring out why one of my lines is not working: system"find . -ctime -1 -exec cp {} /opt/WWW/web_stats/logs/daily/newfiles \"; try system("find .-ctime -1-exec cp{} /opt/WWW/web_stats/logs/daily/newfiles "); on a single line and do not escape the la