Sponsored Content
Full Discussion: ps aux + grep + nice + while
Top Forums Shell Programming and Scripting ps aux + grep + nice + while Post 302734979 by vbe on Friday 23rd of November 2012 08:02:30 AM
Old 11-23-2012
IMHO It is not a good idea... For you may end with backups never completing...
With time passing all processes loose importance ( automatically the privileges are lowered ) after a well quite some time if your backup is still running, its new privilege will avoid the backup to complete itself... I already saw that on 2 sites so far... ( without anybody noticing... I happened to be called for an issue on a weekend and when tried to restore, I looked at 70 tapes...)
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Very Nice

Just a quick message to say great work to Neo and any others who have helped with the upgrade - the layout, appearance and functionality of this forum ROCKS. By far the best I have seen. Excellent! (1 Reply)
Discussion started by: alwayslearningunix
1 Replies

2. UNIX for Dummies Questions & Answers

PS -aux and PS

I am new to the Unix. Can someone tell me what is the difference between 'PS' command and 'PS -aux"? Isn't 'PS' mean the current running process? Isn't 'PS -aux' mean the current running process too? If they are the same, how come 'PS -aux' always has a lot more listing than 'PS'? Thanks, (4 Replies)
Discussion started by: a2715mt
4 Replies

3. UNIX for Dummies Questions & Answers

ps aux|grep getty

what is the aim of this command: ps aux|grep getty (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

4. Programming

nice command and nice() system call

Hi I want to implement the nice command in the shell that I am building. I came to know that there is a corresponding nice() system call for the same. But since I will be forking different processes to run different commands typed on the command prompt, is there any way I can make a command... (2 Replies)
Discussion started by: tejbuch
2 Replies

5. Shell Programming and Scripting

Need to get the list of file with size in AUX

to get the list of file name with size Example: rwxrwxrwx 1 cm x 562KB Nov 6 19:22 a rwxrwxrwx 1 cm x 562MB Nov 6 19:22 a edit by bakunin: Please view this code tag video for how to use code tags when posting code and data. (5 Replies)
Discussion started by: Jewel
5 Replies

6. AIX

Difference between ps -ef and ps aux

Hi, Can someone tell me what the difference is between ps -ef and ps aux. I was under the assumption that both commands would list ALL processes currently running on the system. But on my server I find the following: # ps -ef | wc -l 519 # ps aux | wc -l 571 What... (1 Reply)
Discussion started by: petervg
1 Replies

7. Shell Programming and Scripting

Extract a column from ps -aux command

Hi, I have the following output : root 9296 81.7 0.2 1115328 20856 ? Sl 14:38 1:00 /opt/h264rtptranscoder.bin --videoPort=14500 --audioPort=14501 --serverPort=14500 --framesPerSecond=50 --profilesPath=/opt/transcodingProfiles I would like to have the following output : ... (6 Replies)
Discussion started by: liviusbr
6 Replies

8. AIX

Run ps aux continuously in AIX

Requirement is to monitor cpu usage /process for a user given time and record the output. topas,topasout,topasrec,tprof not seems to be working for me. so what i am looking for is to run below command continously till the time limit given by the user who runs the script.since below command is a one... (6 Replies)
Discussion started by: NarayanaPrakash
6 Replies

9. Shell Programming and Scripting

Get PID Number from “ps aux --sort -rss ”

Hi everyone How can I just get the PID of the following command: ps aux --sort -rss Thanks Regards (2 Replies)
Discussion started by: anonymuser
2 Replies

10. Shell Programming and Scripting

How to find the exact process using ps aux command?

Please do not post a technical question in the @How to contact....' forum. I have moved this for you. Hello Everyone, Please help me on this, Requirement here is to check whether the process is running using the process id. For the below scenario, I m trying to grep 1750 process id to... (3 Replies)
Discussion started by: Hari A
3 Replies
BACKUP_KILL(8)						       AFS Command Reference						    BACKUP_KILL(8)

NAME
       backup_kill - Terminates a pending or running operation

SYNOPSIS
       backup kill -id <job ID or dump set name> [-help]

       backup k k -i <job ID or dump set name> [-h]

DESCRIPTION
       The backup kill command dequeues a Backup System operation that is pending, or terminates an operation that is running, in the current
       interactive session. It is available only in interactive mode.  If the issuer of the backup interactive command included the -localauth
       flag, the -cell argument, or both, then those settings apply to this command also.

       To terminate a dump operation, specify either the dump name (volume_set_name.dump_level_name) or its job ID number, which appears in the
       output from the backup jobs command. To terminate any other type of operation, provide the job ID number.

       The effect of terminating an operation depends on the type and current state of the operation:

       o   If an operation is still pending, the Tape Coordinator removes it from the queue with no other lasting effects.

       o   If the Tape Coordinator is unable to process the termination signal before an operation completes, it simply confirms the operation's
	   completion. The operator must take the action necessary to undo the effects of the incorrect operation.

       o   If a tape labeling operation is running, the effect depends on when the Tape Coordinator receives the termination signal. The labeling
	   operation is atomic, so it either completes or does not begin at all.  Use the backup readlabel command to determine if the labeling
	   operation completed, and reissue the backup labeltape command to overwrite the incorrect label if necessary.

       o   If a tape scanning operation is running, it terminates with no other effects unless the -dbadd flag was included on the backup command.
	   In that case, the Backup System possibly has already written new Backup Database records to represent dumps on the scanned tape. If
	   planning to restart the scanning operation, first locate and remove the records created during the terminated operation: a repeated
	   backup scantape operation exits automatically when it finds that a record that it needs to create already exists.

       o   If a dump operation is running, all of the volumes written to the tape or backup data file before the termination signal is received
	   are complete and usable. If the operation is restarted, the Backup System performs all the dumps again from scratch, and assigns a new
	   dump ID number. If writing the new dumps to the same tape or file, the operator must relabel it first if the interrupted dump is not
	   expired. If writing the new dump to a different tape or file, the operator can remove the dump record associated with the interrupted
	   dump to free up space in the database.

       o   If a restore operation is running, completely restored volumes are online and usable. However, it is unlikely that many volumes are
	   completely restored, given that complete restoration usually requires data from multiple tapes. If the termination signal comes before
	   the Backup System has accessed all of the necessary tapes, each volume is only partially written and is never brought online. It is
	   best to restart the restore operation from scratch to avoid possible inconsistencies. See also CAUTIONS.

CAUTIONS
       It is best not to issue the backup kill command against restore operations. If the termination signal interrupts a restore operation as the
       Backup System is overwriting an existing volume, it is possible to lose the volume entirely (that is, to lose both the contents of the
       volume as it was before the restore and any data that was restored before the termination signal arrived). The data being restored still
       exists on the tape, but some data can be lost permanently.

OPTIONS
       -id <job ID or dump set name>
	   Identifies the backup operation to terminate. Provide one of two types of values:

	   o   The operation's job ID number, as displayed in the output of the backup jobs command.

	   o   For a dump operation, either the job ID number or a dump name of the form volume_set_name.dump_level_name, where volume_set_name is
	       the name of the volume set being dumped and dump_level_name is the last element in the dump level pathname at which the volume set
	       is being dumped. The dump name appears in the output of the backup jobs command along with the job ID number.

       -help
	   Prints the online help for this command. All other valid options are ignored.

EXAMPLES
       The following command terminates the operation with job ID 5:

	  backup> kill 5

       The following command terminates the dump operation called "user.sunday1":

	  backup> kill user.sunday1

PRIVILEGE REQUIRED
       The issuer must have the privilege required to initiate the operation being cancelled. Because this command can be issued only within the
       interactive session during which the operation was initiated, the required privilege is essentially guaranteed.

SEE ALSO
       backup(8), backup_interactive(8), backup_jobs(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_KILL(8)
All times are GMT -4. The time now is 12:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy