Crontab zip files




















Improve this answer. Hi, tripleee you answer worked, but I did't accepted your answer because the file name suffix was missing. Could you try this;! But this script only generate only date like I updated ans. If you fix this, gzip command also work correctly. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Creating and Editing crontab Files The simplest way to create a crontab file is to use the crontab -e command to invoke the text editor set up for your system environment, defined by the EDITOR environment variable.

How to Create or Edit a crontab File Optional Become superuser to create or edit a crontab file belonging to root or another user. Create a new crontab file, or edit an existing one. Caution - If you accidentally enter the crontab command with no option, press the interrupt character for your editor. Verify the crontab file by using the crontab -l command. Hi Frenz, How do we get a cron job running in background to foreground? Hi, We have a group of hosts using which the cron jobs are submitted Few days ago i had submitted a cron job in of these hosts, but unfortunately forgot the host name : Can anyone please help me out in finding this host name from which the cron s submitting the job, i dont want the I need to start a job every friday night at P.

M , it runs all the day on Sat and Sun I understand crontab I honestly dont know? Plz help. Thanks 2 Replies. Zipping files older than one month. I have to zip all files older than a month within a directory. I have to archive them using the file extension I have. I created a php script. I'd like to have it run as a cron job every day at am. Cron Jobs. My cronjob sends all output to my mail, does anyone know how to redirect output to come out on the screen???

Where can someone find info on Cron Jobs? Annihilannic, good point. I believe the way cron builds the in-memory hashes, it is always reading a minute at least behind, like it executes the list then rebuilds it or it skips the new additions. The reason was that I one time I ran out of space and could not write the file, and the other time the system crashed and the crontab could not be recovered.

Also with the code in a script, you can change it without twiddling crontab, which is both a blessing and a curse because anyone with write access to that file can take over your system. Oh well I did some testing. You aren't even getting to the point of calling gzip. Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Close Box. Log In Come Join Us! Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden. Thkx RE: Using Zip with crontab os?

RE: Using Zip with crontab he means put the command in a shell and execute the shell from cron so the crontab line is clean. RE: Using Zip with crontab doh!! RE: Using Zip with crontab Ok



0コメント

  • 1000 / 1000