Sponsored Content
Full Discussion: backgroud process
Top Forums UNIX for Advanced & Expert Users backgroud process Post 24913 by trynew on Saturday 20th of July 2002 10:33:21 AM
Old 07-20-2002
backgroud process

Hi experts


How to write a shell program(sh) that running on the backgroud when foreground processing something, such as prompt ....... till the background process finished.


thx
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

piping and backgroud processes (daemons)

Hello to all, I've a strage problem here: a perl script that parses the output of sar -q 300 0 (one line of performace data each 5 min. infinately) works fine from the CLI. It processes one line output every 5 minutes. If i disconnect it from the terminal (executing it with cron, nohup startporc... (2 Replies)
Discussion started by: demwz
2 Replies

2. Shell Programming and Scripting

multiple child scripts running in backgroud, how to use grep on the parent?

Hi I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running. My Code: ... (5 Replies)
Discussion started by: albertashish
5 Replies

3. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

4. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

5. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

6. Shell Programming and Scripting

Running commands in backgroud

I have a small question may be this will be discussed before I have two files file1 and file2 with huge data and I am running the commands as cat file1 |sort & cat file2 |sort & If the session is got disconnected or logout will this command run in background, or shall we use nohup (3 Replies)
Discussion started by: morbid_angel
3 Replies

7. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

8. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

9. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

10. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
XNLOCK(1)						      General Commands Manual							 XNLOCK(1)

NAME
xnlock - amusing lock screen program with message for passers-by SYNOPSIS
xnlock [ options ] [ message ] DESCRIPTION
xnlock is a program that acts as a screen saver for workstations running X11. It also "locks" the screen such that the workstation can be left unattended without worry that someone else will walk up to it and mess everything up. When xnlock is running, a little man with a big nose and a hat runs around spewing out messages to the screen. By default, the messages are "humorous", but that depends on your sense of humor. If a key or mouse button is pressed, a prompt is printed requesting the user's password. If a RETURN is not typed within 30 seconds, the little man resumes running around. Text on the command line is used as the message. For example: % xnlock I'm out to lunch for a couple of hours. Note the need to quote shell metacharacters. In the absence of flags or text, xnlock displays random fortunes. OPTIONS
Command line options override all resource specifications. All arguments that are not associated with a command line option is taken to be message text that the little man will "say" every once in a while. The resource xnlock.text may be set to a string. -fn fontname The default font is the first 18 point font in the new century schoolbook family. While larger fonts are recokmmended over smaller ones, any font in the server's font list will work. The resource to use for this option is xnlock.font. -filename filename Take the message to be displayed from the file filename. If filename is not specified, $HOME/.msgfile is used. If the contents of the file are changed during runtime, the most recent text of the file is used (allowing the displayed message to be altered remotely). Carriage returns within the text are allowed, but tabs or other control characters are not translated and should not be used. The resource available for this option is xnlock.file. -ar Accept root's password to unlock screen. This option is true by default. The reason for this is so that someone's screen may be unlocked by autorized users in case of emergency and the person running the program is still out to lunch. The resource available for specifying this option is xnlock.acceptRootPasswd. -noar Don't accept root's password. This option is for paranoids who fear their peers might breakin using root's password and remove their files anyway. Specifying this option on the command line overrides the xnlock.acceptRootPasswd if set to True. -ip Ignore password prompt. The resource available for this option is xnlock.ignorePasswd. -noip Don't ignore password prompt. This is available in order to override the resource ignorePasswd if set to True. -fg color Specifies the foreground color. The resource available for this is xnlock.foreground. -bg color Specifies the background color. The resource available for this is xnlock.background. -rv Reverse the foreground and background colors. The resource for this is xvnlock.reverseVideo. -norv Don't use reverse video. This is available to override the reverseVideo resource if set to True. -prog program Receive message text from the running program program. If there are arguments to program, encase them with the name of the program in quotes (e.g. xnlock -t "fortune -o"). The resource for this is xnlock.program. RESOURCES
xnlock.font: fontname xnlock.foreground: color xnlock.background: color xnlock.reverseVideo: True/False xnlock.text: Some random text string xnlock.program: program [args] xnlock.ignorePasswd: True/False xnlock.acceptRootPasswd: True/False FILES
xnlock executable file ~/.msgfile default message file AUTHOR
Dan Heller <argv@sun.com> Copyright (c) 1985, 1990. The original version of this program was written using pixrects on a Sun 2 running SunOS 1.1. 19 April 1990 XNLOCK(1)
All times are GMT -4. The time now is 03:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy