Ah I see my mistake...i thought perl just assigned the shell escape to the
variable..but it seems perl actually executes teh shell escape when the
statement is initially assigned to the variable.

$backup_rootmail = `tar -cf /mnt/jazz/backup_rootmail.tar /root/mail`;





On Wed, 26 Dec 2001, John wrote:

> 
> Hi all,
> 
> I have a simple crude script which i use to backup some data.
> 
> I use shell escapes to mount my jazz drive..then tar the data on to the
> jazz drive...then i attempt to unmount the jazz drive...
> 
> here is what happens...
> 
> the program seems to work..the files are saved in /mnt/jazz and i can view
> the tar archives..etc...even untar them...BUT OLd data i saved on the
> drive is not listed anymore when i use an ls from linux.
> 
> then when i unmount the drive..all teh data is not there anymore but OLD
> data i wrote to the disk is there.
> 
> It alsmost seems that the mounting of my jazz drive from perl creates some
> type of ramdisk instead of saving it to the jazz disk...
> 
> Is there something i am missing?? The code follows...
> 
> #!/usr/bin/perl
> 
> $mount_jazz = `mount /mnt/jazz`;
> $unmount_jazz = `umount /mnt/jazz`;
> $backup_spool = `tar -cf /mnt/jazz/backup_spool.tar /var/spool/`;
> $backup_rootmail = `tar -cf /mnt/jazz/backup_rootmail.tar /root/mail`;
> $backup_adamchrmail = `tar -cf /mnt/jazz/backup_adamchrmail.tar /home/adamchr
> $backup_etc          = `tar -cf /mnt/jazz/backup_etc.tar /etc`;
> $bzip_jazz = `bzip2 -kf /mnt/jazz/*.tar`;
> $erase_tar = `rm -f /mnt/jazz/*.tar`;
> 
> 
> #$mount_jazz;
> $backup_spool;
> $backup_rootmail;
> $backup_adamchrmail;
> $backup_etc;
> $erase_tar;
> 
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to