Sponsored Content
Full Discussion: ps -u myname
Top Forums UNIX for Dummies Questions & Answers ps -u myname Post 302445233 by agama on Saturday 14th of August 2010 04:53:01 PM
Old 08-14-2010
Quote:
Originally Posted by ido1957
I type jobs 7435 and it says no such job.
The jobs command is built into the shell. It optionally takes as an argument the job number that the shell assigned to the command; not the PID. The job number is presented by the shell when you add an & suffix to any command:

Code:
$ nohup t16 >x 2>&1 &
[1]     16217

Depending on the shell, if you want to query the job information for job 1, the command would be:
Code:
jobs %1     # kshell
jobs 1         #bash

I think bash might also accept %1, but Im not sure. Regardless, issuing the jobs command without any parameters will show you all of the commands that the shell is running asynchronously.
 

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

for i in `cat myname.txt` && for y in `cat yourname.txt`

cat myname.txt John Doe I John Doe II John Doe III ----------------------------------------------------------------------- for i in `cat myname.txt` do echo This is my name: $i >> thi.is.my.name.txt done ----------------------------------------------------------------------- cat... (1 Reply)
Discussion started by: danimad
1 Replies

2. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies
qorder(1B)								PBS								qorder(1B)

NAME
qorder - exchange order of two pbs batch jobs in a queue. SYNOPSIS
qorder job_identifier job_identifier DESCRIPTION
To order two jobs is to exchange the jobs positions in the queue or queues in which the jobs resides. The two jobs must be located at the same server. No attribute of the job, such as priority is changed. The impact of interchanging the order with the queue(s) is dependent on local job scheduled policy, contact your systems administrator. A job in the running state cannot be reordered. OPERANDS
Both operands are job_identifiers which specify the jobs to be exchanged. The qorder command accepts two job_identifier operands of the form: sequence_number[.server_name][@server] The server specification for the two jobs must agree as to the current location of the two job IDs. STANDARD ERROR
The qorder command will write diagnostic messages to standard error for each error occurrence. EXIT STATUS
Upon successful processing of all the operands presented to the qorder command, the exit status will be a value of zero. If the qorder command fails to process any operand, the command exits with a value greater than zero. SEE ALSO
qsub(1B), qmove(1B), pbs_orderjob(3B), pbs_movejob(3B) Local qorder(1B)
All times are GMT -4. The time now is 05:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy