Re: [Tutor] backup failed - gzip

2004-12-03 Thread Liam Clarke
Hi Rankumar - That's your problem then - if os.system(zip_command) == 0: > > > print 'Successful backup to', target So, os.system() returns 0 for Win 95,98, ME. For XP, it returns whatever the exit code your programme returns . So whatever zip returns, is what os.system() returns, which m

Re: [Tutor] backup failed - gzip

2004-12-02 Thread Liam Clarke
As the below quote from the manual shows - On Windows, the return value is that returned by the system shell after running command, given by the Windows environment variable COMSPEC: on command.com systems (Windows 95, 98 and ME) this is always 0; on cmd.exe systems (Windows NT, 2000 and XP) this

[Tutor] backup failed - gzip

2004-12-02 Thread Ramkumar Parimal Alagan
This is what i intend to do: 1. The files and directories to be backed up are given in a list. 2. The backup must be stored in a main backup directory. 3. The files are backed up into a zip file. 4. The name of the zip archive is the current date and time. the coding: __ import os i