05-22-2009
use jobs -l to list the back ground jobs
amit@softpc142108 ars $ jobs -l
[1] + 3388 Running nohup amit.sh &
Then u can take back from background using fg
fg %1
here 1 is the id marked in red and 3388 is the process id
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Sun E5000 running Solaris 8
I receive permission denied error when attempting to cancel a print job as root, user, or lp.
I found a tech tip that said to remove the tcp lp listeners but that didn't help. I can clean the queue using the old sun lpc command but my users need to be able to cancel... (2 Replies)
Discussion started by: Ron Restieri
2 Replies
2. UNIX for Advanced & Expert Users
Hi all
In Aix system Someone know i want to cancel the massage. if some user print something and user root deleting the job i got brodcast message " message from queueing system job number XXX has been deleteing from queue. <EOT> "
I use the cancel command (1 Reply)
Discussion started by: goldfelda
1 Replies
3. Shell Programming and Scripting
Hello,
I have bunch of shell scripts, which I want to execute every hour in the background. So I created a script mainscript.sh which executes these hourly scripts in the background. Script goes like this.
mainscript.sh
#!/bin/sh
nohup sh subscript1.sh &
nohup sh subscrip2.sh &
exit 0
... (5 Replies)
Discussion started by: papachi_2000
5 Replies
4. Solaris
Hello, I am sort of new to cron jobs, I have a cron job running everyday that no longer needs to.
How do I cancel it? (4 Replies)
Discussion started by: komputersman
4 Replies
5. Shell Programming and Scripting
once i have stoped process by ctrl+z then i want to run it again
in nohup plz help me out. (6 Replies)
Discussion started by: RahulJoshi
6 Replies
6. AIX
Hi,
I ran a program like following sample.sh &
Later I realized that this job will take more hours to complete. Since it consumed 2 hours dat aprocessing and I don't want to terminate and then start the job like
nohup sample.sh &
Can you please tell me, is it possible to make this job no... (5 Replies)
Discussion started by: shahnazurs
5 Replies
7. HP-UX
hi every body
i used " lpstat -o" to show the printer jobs and i already canceld it by "cancel -e -f jobid"
but the problem i found when used " lpstat -o" again it said that job in progress i think because it in the buffer but i don't know how to clear the printer. (9 Replies)
Discussion started by: maxim42
9 Replies
8. UNIX for Dummies Questions & Answers
My job is launched using this command: I'm at home and having VPN drops so I used nohup and background.
nohup perf_mon -c rating_4_multi,cfg &
The main script is PID 26119, and the sub task under it is 26118 which is not running - just sits there. 26119 runs forever but nothing else runs. I... (2 Replies)
Discussion started by: ido1957
2 Replies
9. Shell Programming and Scripting
load_cursor_stmt()
{
ls /db/admin/ddl/rmn01000/load_cursor*.sql|while read file
do
echo "${file}"
`nohup db2 -tvf "$file" \&`
done
}Error:
-------
/admin/ddl/rmn01000/load_cursor5.sql /db/admin/ddl/rmn01000/load_cursor6.sql
+ read file
+ echo... (3 Replies)
Discussion started by: Hangman2
3 Replies
10. Shell Programming and Scripting
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies
LEARN ABOUT MOJAVE
cancel
cancel(1) Apple Inc. cancel(1)
NAME
cancel - cancel jobs
SYNOPSIS
cancel [ -E ] [ -U username ] [ -a ] [ -h hostname[:port] ] [ -u username ] [ -x ] [ id ] [ destination ] [ destination-id ]
DESCRIPTION
The cancel command cancels print jobs. If no destination or id is specified, the currently printing job on the default destination is can-
celed.
OPTIONS
The following options are recognized by cancel:
-a Cancel all jobs on the named destination, or all jobs on all destinations if none is provided.
-E Forces encryption when connecting to the server.
-h hostname[:port]
Specifies an alternate server.
-U username
Specifies the username to use when connecting to the server.
-u username
Cancels jobs owned by username.
-x Deletes job data files in addition to canceling.
CONFORMING TO
Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also,
printer and class names are not case-sensitive.
EXAMPLES
Cancel the current print job:
cancel
Cancel job "myprinter-42":
cancel myprinter-42
Cancel all jobs:
cancel -a
NOTES
Administrators wishing to prevent unauthorized cancellation of jobs via the -u option should require authentication for Cancel-Jobs opera-
tions in cupsd.conf(5).
SEE ALSO
cupsd.conf(5), lp(1), lpmove(8), lpstat(1), CUPS Online Help (http://localhost:631/help)
COPYRIGHT
Copyright (C) 2007-2017 by Apple Inc.
15 April 2014 CUPS cancel(1)