RE: system command interraction

2002-06-04 Thread Kipp, James
>try: >-- >#!/usr/bin/perl > >$date = `date +%y%m%e`; >$backup_dest = "/backup/home/" . "$date" . "-monthly"; >$archive_dest = "/backup/home/archives/" . "$date" . "-monthly"; >$backup_target = "/home/"; >$level = '0'; > >$cmd = "dump -$level -u -A $archive_dest -f $backup_dest -j 9 >$backup_targ

RE: system command interraction

2002-06-04 Thread Jeff 'japhy' Pinyan
On Jun 4, Kipp, James said: >$date = `date +%y%m%e`; >$backup_dest = "/backup/home/" . "$date" . "-monthly"; Needless quoting of $date, and there's no reason to separate $date from the rest of the string: $backup_dest = "/backup/home/$date-monthly"; >$archive_dest = "/backup/home/archives/"

Re: system command interraction

2002-06-04 Thread Jeff 'japhy' Pinyan
On Jun 4, Mat Harris said: >I want to issue the command to the command line, including the values of >these vars. I have tried backticking and the system('command here') but >they just send the vars as empty strings. Here's the program: #!/usr/bin/perl $date = `date +%y%m%e`; $backup_d

RE: system command interraction

2002-06-04 Thread Kipp, James
try: -- #!/usr/bin/perl $date = `date +%y%m%e`; $backup_dest = "/backup/home/" . "$date" . "-monthly"; $archive_dest = "/backup/home/archives/" . "$date" . "-monthly"; $backup_target = "/home/"; $level = '0'; $cmd = "dump -$level -u -A $archive_dest -f $backup_dest -j 9 $backup_target"; system