whiteskin has asked for the wisdom of the Perl Monks concerning the following question:
The script is supposed to dump a sever to a local disk, as a rudimetary form of backup. Mainly this is being done for learning.
So here it is.
Now i always get errors about improper escapes, and when i use -w, i get problems with main:date. I dont really know what is wrong with this.#!/usr/bin/perl #Perl script to backup sever. Jan 7th 2004. $server = drive; chomp($date = system("date \t")); system("mkdir C:\Server Backup\$date"); system("xcopy "C:\Documents and Settings\PD\My Documents\* c:\server B +ackup\test\"";
20040108 Edit by jeffa: Changed title from 'help.'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Improper escaping error when executing system command
by Roger (Parson) on Jan 08, 2004 at 01:46 UTC | |
|
Re: Improper escaping error when executing system command
by ysth (Canon) on Jan 08, 2004 at 01:19 UTC | |
|
Re: Improper escaping error when executing system command
by davido (Cardinal) on Jan 08, 2004 at 01:32 UTC | |
|
Re: Improper escaping error when executing system command
by BrowserUk (Patriarch) on Jan 08, 2004 at 04:17 UTC | |
|
Re: Improper escaping error when executing system command
by whiteskin (Initiate) on Jan 08, 2004 at 03:17 UTC |