Sponsored Content
Top Forums UNIX for Dummies Questions & Answers At command not running out of hours Post 302948868 by RudiC on Friday 3rd of July 2015 08:34:11 AM
Old 07-03-2015
Then you definitely should not go home any more!

Why don't you leave the scheduling to cron and have it run just the backup script every day at 19:00h?
Code:
crontab -e                                # edit your crontab file
0 19 * * * /Scripts/Run_Backup.txt        # add this line to the file

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

AT command to batch execute every x hours

I want to schedule a batch job (SQL)to run every 6 hours in Unix and the AT command syntax does not seem to cover this. I have created a file ncd_rpt in the directory report and have given the command in this file. at -f /report/ncd_rpt 1:00 am tomorrow I schedule this by running sh... (1 Reply)
Discussion started by: naveen79
1 Replies

2. Shell Programming and Scripting

Command to clear logs for every 6 hours in solaris

Hi Folks, I need to remove log files for six hours on Solaris. before i used to do for every 24 hours below is the code for 1 day older log files, now i tried using -mmin +360 but it says command not found. Can someone please help me out!!! part of the code: LOG_FILE=`find /home/Logdir... (1 Reply)
Discussion started by: Sendhil.Kumaran
1 Replies

3. UNIX for Dummies Questions & Answers

Capture running process for 2 hours with an interval of 10 sec

Hi, Can any one help me on this. How to capture the running process for two hours with an interval of 10 sec. Thanks in andvance Double post, continued here, thread closed (0 Replies)
Discussion started by: sarathkumar
0 Replies

4. Shell Programming and Scripting

Capture running process or 2 hours with an interval of 10 sec

Hi, Can any one help me on this. How to capture the running process for two hours with an interval of 10 sec. Thanks in andvance (1 Reply)
Discussion started by: sarathkumar
1 Replies

5. Shell Programming and Scripting

Capture the running process for 2 hours

Hi, How can i capture the running process for 2 hours. Thanks in advance.:b: (1 Reply)
Discussion started by: sarathkumar
1 Replies

6. Shell Programming and Scripting

List of Running Jobs In Last 4 Hours

Hi Experts, Please help me in this. I am trying this code on AIX 5.3. I need list of jobs that executed in last 4 hours. I have a schedule on this script - cron executes it and sends mail to me for every 2 hours. I have a Job time and have around 100 jobs those execute daily. What all i need... (2 Replies)
Discussion started by: rajubollas
2 Replies

7. Shell Programming and Scripting

Print only processes running for more than 24 hours

How can I print ONLY processes running for more than 24 hours. Using ps command or any other method I use this to get a whole list. ps -eo pid,pcpu,pmem,user,args,etime,cmd --sort=start_time We can also sort the outout of the above command to list processes older than 24 hours using... (9 Replies)
Discussion started by: anil510
9 Replies

8. Shell Programming and Scripting

Run a command once in three hours

Hi All, I have a bash script which is scheduled to run for every 20 minutes. Inside the bash script, one command which I am using need to be triggered only once in two or three hours.Is there anyway to achieve this. For example, if then echo "hi" else echo "Hello" UNIX Command---once... (5 Replies)
Discussion started by: ginrkf
5 Replies

9. UNIX for Beginners Questions & Answers

How to display processes which have been running for more than a X hours?

Hi, Is it possible to display processes which have been running for more than a 5hrs using a variation of the ps -ef command? Regards, Manny (5 Replies)
Discussion started by: mantas44
5 Replies

10. UNIX for Beginners Questions & Answers

How to check the processes running longer than 2 hours.?

HI can someone help me to check the process running more than 2 hours. I have the below command which shows the time and process id, however, I only need the processes running more than 2 hours. (8 Replies)
Discussion started by: Vinod
8 Replies
BACKUP_JOBS(8)						       AFS Command Reference						    BACKUP_JOBS(8)

NAME
backup_jobs - Lists pending and running operations in interactive mode SYNOPSIS
jobs [-help] j [-h] DESCRIPTION
The backup jobs command lists the job ID number and status of each backup operation running or pending in the current interactive session. This command can be issued in interactive mode only. If the issuer of the backup interactive command included the -localauth flag, the -cell argument, or both, those settings apply to this command also. To terminate operations that appear in the output, issue the backup kill command and identify the operation to cancel with the job ID number from this command's output. To check the status of a Tape Coordinator, rather than of a certain operation, use the backup status command. OPTIONS
-help Prints the online help for this command. All other valid options are ignored. OUTPUT
The output always includes the expiration date and time of the tokens that the backup command interpreter is using during the current interactive session, in the following format: <date> <time>: TOKEN EXPIRATION If the execution date and time specified for a scheduled dump operation is later than <date time>, then its individual line (as described in the following paragraphs) appears below this line to indicate that the current tokens will not be available to it. If the issuer of the backup command included the -localauth flag when entering interactive mode, the line instead reads as follows: : TOKEN NEVER EXPIRES The entry for a scheduled dump operation has the following format: Job <job_ID>: <timestamp>: dump <volume_set> <dump_level> where <job_ID> Is a job identification number assigned by the Backup System. <timestamp> Indicates the date and time the dump operation is to begin, in the format month/date/year hours:minutes (in 24-hour format) <volume_set> Indicates the volume set to dump. <dump_level> Indicates the dump level at which to perform the dump operation. The line for a pending or running operation of any other type has the following format: Job <job_ID>: <operation> <status> where <job_ID> Is a job identification number assigned by the Backup System. <operation> Identifies the operation the Tape Coordinator is performing, which is initiated by the indicated command: Dump (dump name) Initiated by the backup dump command. The dump name has the following format: <volume_set_name>.<dump_level_name> Restore Initiated by the backup diskrestore, backup volrestore, or backup volsetrestore command. Labeltape (tape_label) Initiated by the backup labeltapen command. The tape_label is the name specified by the backup labeltape command's -name or -pname argument. Scantape Initiated by the backup scantape command. SaveDb Initiated by the backup savedb command. RestoreDb Initiated by the backup restoredb command. <status> Indicates the job's current status in one of the following messages. If no message appears, the job is either still pending or has finished. number Kbytes, volume volume_name For a running dump operation, indicates the number of kilobytes copied to tape or a backup data file so far, and the volume currently being dumped. number Kbytes, restore.volume For a running restore operation, indicates the number of kilobytes copied into AFS from a tape or a backup data file so far. [abort requested] The backup kill command was issued, but the termination signal has yet to reach the Tape Coordinator. [abort sent] The operation is canceled by the backup kill command. Once the Backup System removes an operation from the queue or stops it from running, it no longer appears at all in the output from the command. [butc contact lost] The backup command interpreter cannot reach the Tape Coordinator. The message can mean either that the Tape Coordinator handling the operation was terminated or failed while the operation was running, or that the connection to the Tape Coordinator timed out. [done] The Tape Coordinator has finished the operation. [drive wait] The operation is waiting for the specified tape drive to become free. [operator wait] The Tape Coordinator is waiting for the backup operator to insert a tape in the drive. EXAMPLES
The following example shows that two restore operations and one dump operation are running (presumably on different Tape Coordinators) and that the backup command interpreter's tokens expire on 22 April 1999 at 10:45 am: backup> jobs Job 1: Restore, 1306 Kbytes, restore.volume Job 2: Dump (user.sunday1), 34 Kbytes, volume user.pat.backup Job 3: Restore, 2498 Kbytes, restore.volume 04/22/1999 10:45: TOKEN EXPIRATION PRIVILEGE REQUIRED
None. However, queuing any operation requires privilege, and it is possible to issue this command only within the interactive session in which the jobs are queued. SEE ALSO
backup(8), backup_interactive(8), backup_kill(8), backup_quit(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BACKUP_JOBS(8)
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy