RE: save output as text file, move file to another location

2004-06-09 Thread Bob Showalter
Gregg O'Donnell wrote: > Greetings all! I have data that is output from a form. OK. I assume you mean an HTML form and your script is a CGI script. > How do I take > this data, save it as a .txt file, and place this .txt file in > another location (a different folder, not cgi-bin) on my server?

save output as text file, move file to another location

2004-06-09 Thread Gregg O'Donnell
Greetings all! I have data that is output from a form. How do I take this data, save it as a .txt file, and place this .txt file in another location (a different folder, not cgi-bin) on my server? Also, each time a .txt file is created, it should "overwrite" the previous file ( I assume this is

RE: File move

2003-07-02 Thread Akens, Anthony
move failed: $!"; } closedir(DIR); Thanks for the help - mainly I want to make sure my code is "sane" and refined. Your reply was very useful. Tony -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:57 AM To: [EMAIL PROTECTED] Subj

Re: File move

2003-07-02 Thread Rob Dixon
Hi Anthony. Anthony Akens wrote: > Just want to check and make sure this snippet of code will do what I think it will. > > Trying to copy all files from $reportsdir to $oldreportsdir Well you shouldn't be asking us, as we can make guesses - usually Very Good Guesses - as to whether it will work,

File move

2003-07-02 Thread Akens, Anthony
Just want to check and make sure this snippet of code will do what I think it will. Trying to copy all files from $reportsdir to $oldreportsdir my $reportsdir = '/usr2/reports'; my $oldreportsdir = '/usr2/oldreports'; # Move everything from the report directory to the old report directory opendi

Re: Log File move script revisited

2001-07-11 Thread Michael Fowler
On Wed, Jul 11, 2001 at 10:49:25AM -0500, Tom Yarrish wrote: > However, on the production box, it doesn't (meaning if today is the 11th, > the log file will be 20010711.log, which is not what I want). Can anyone > give me some ideas on why this might be happening? I can't see anything in your cod

Log File move script revisited

2001-07-11 Thread Tom Yarrish
Hey all, Okay, I have this script that I asked about a few days ago, that allows me to move some log files and put a date on the filename when they are moved. This is a script that runs daily (currently) on two machines. One server is a test server, the other is a backup production server. Now,