Hi,
I am having issues with syntax when I am trying to send a job to the background after a input redirection.
I have this script which sends some files to different servers after zipping them. Once I execute it, it will ask for user input as of which server the files need to go to. (The filenames and location are coded for in the script)
The script comes out of the execution if no input is passed within 5 secs.
I execute this script using the following:
By doing that, the script waits at prompt until it finishes execution.
For it to not wait until execution completes I was trying to submit this job in the background but i am not able to figure out a syntax for the same.
I have tried the following and it runs without taking in the 'ALL' input.
Any help would be much appreciated.
Hi everybody, first of all i am a new member in UNIX.com and this is my first post.
I am impressed with the amount of information a person can ever have in this forum, it is really great having something similiar; anyways let me tell you about the problem I am having, hope you will answer me.... (6 Replies)
I try to run a script as background job.
script:
#!/usr/bin/csh
/usr/bin/date +20%y-%m-%d > ~/datsql.txt
If I start it I got this output:
tac> ./datermitteln&
293
+ Stopped (SIGTTOU) ./datermitteln&
I insert the following line inside my script, but without any... (3 Replies)
Hiya,
Recently I've run a few scripts in the foreground, but have realised later they should of been better nohup'd and placed in the background. I understand how to change a foreground job into a background one, but how would put the job into the nohup state?
Thanks (1 Reply)
on gnome i open a terminal and run wget http://soommmething & in the background. because wget shows me downloading progress percentage and download speed continuously, I exit the gnome-terminal
after a while i want to see the download percentage but dont know how. my ps -u myname shows that... (3 Replies)
Hi,
in my script I need to execute the following command:
query $id 456 432
but it waits for a RETURN character from keyboard and therefore, it fails. I tried something like:
query $id 456 432 << '\n'
but, i'ts clear it is not correct. Is there any way to do this?
Thxs. (0 Replies)
Hello,
I need help with a bash script that I try to improve. I could not find answer so far, maybe because I'm not to familiar with the terminology so feel free to correct my language.
I have a script that looks like:
NODES="node_a node_b node_c"
for NODE in $NODES
do
... (4 Replies)
I have many CPU intensive processes running and sometimes I run them in the foreground so that I can see what the output is.
I want to send that foreground process to the background, but also have it direct the output to a logfile.
I know to send something to the bg I do
Ctrl-z on the FG... (6 Replies)
Can someone please explain when input redirection is necessary?
For example, "cat filename" and "cat< filename" produce the same result. I was told that if I need to bunzip a file that I should type "bunzip2<filename.bz2." However, if I omit the "<" I still get the same result. Can someone... (4 Replies)
Example script:
find mydir -type f -exec echo {}>aaa \; -exec echo {}>bbb \;The two paths go the the bbb file, while there should be one of them on each file. How should I do it to get it working? (2 Replies)
Discussion started by: Tribe
2 Replies
LEARN ABOUT DEBIAN
gearman
GEARMAN(1) Gearmand GEARMAN(1)NAME
gearman - Gearmand Documentation, http://gearman.info/
Command line client for Gearmand
SYNOPSIS
Common options
-f <function>
Function name to use for jobs (can give many)
-h <host>
Job server host
-H Print this help menu
-p <port>
Gearman server port
-t <timeout>
Timeout in milliseconds
-i <pidfile>
Create a pidfile for the process
-n In client mode run one job per line, in worker mode send data packet for each line
-N Same as -n, but strip off the newline
Client options
-b Run jobs in the background
-I Run jobs as high priority
-L Run jobs as low priority
-P Prefix all output lines with functions names
-s Send job without reading from standard input
-u <unique>
Unique key to use for job
Worker options*
-c <count>
Number of jobs for worker to run before exiting
-w Run in worker mode
DESCRIPTION
With gearman you can run client and worker functions from the command line.
HOME
To find out more information please check: http://gearman.info/
SEE ALSO gearmand(8)libgearman(3)AUTHOR
Data Differential http://www.datadifferential.com/
COPYRIGHT
2012, Data Differential, http://www.datadifferential.com/
0.33 May 04, 2012 GEARMAN(1)