Re: CGI changes

2005-10-20 Thread Xavier Noria
On Oct 20, 2005, at 9:24, Kamalraj Singh Madhan, Noida wrote: Now I want to add the current date to the name of the zipped up file i.e. to the variable named 'filen' in the above script... Is there any date function in shell scripting which can solve this problem? Kindly suggest. Yes, you can

CGI changes

2005-10-20 Thread Kamalraj Singh Madhan, Noida
Hi Guys, I have a cgi which automates the task of zipping up a complete directory and its sub directories: echo "Content-type: text/html" echo "" echo "" echo "" echo "Building tar file..." echo "" cd /var/www/html/ for type in test; do filen=${type//\//-} echo "Building ${filen}.tgz " tar c