Thanks , as per your advise , i didnt use any delay instead made a condition to check whether the function pid is available which will be executed in a function which called from case (for requirment 4 is the exit made condition to check then exit).
I have a following program:
echofunc()
{
filename=$1
echo "reading $filename"
while read line
do
echo $line;
sleep 6;
done < $filename
}
split -5 new.dat
ls x* > input.dat
while read file
do
echofun $file &
done < input.dat (3 Replies)
I am trying to write a script that will ssh into a remote machine and recurse through a specified directory, find mp3 files which may be two or three directories deep (think iTunes: music/artist/album/song.mp3), and scp them back to the machine running the script. The script should also maintain... (3 Replies)
hello there,
there's a function, in my shell script, i'd like to run in the background.
here's an example:
log()
{
local SELF=${0##*/}
tty -s && echo ": $*"
}
some_func()
{
# do something
log "This text is not displayed in the terminal's output when running in the... (1 Reply)
Dear All,
I am trying to run a script in background like ./scriptname.sh & but when i try to run it in background it is giving me an error "syntax error at line 12: `(' unexpected" at the line 12, there is a function definition
"function getFileList()".
This script runs fine if i run on... (2 Replies)
I have written the below query to genrate a telephone.I am passing account number from oracle database.
I am calling 2 scripts which generate the bill
1. bip.sh (it runs in the background)
2.runXitInvoice_PROFORMA_integ
bip.sh generates a number which runXitInvoice_PROFORMA_integ
uses.How... (7 Replies)
Hi Guys,
i am having a script which checks for ip address is pingable or not,when i execute this script in terminal it keeps on showing the pinging status of every ip address and it takes more time when i check for 100 ip address,How to do run a script in background without showing in the terminal... (4 Replies)
Hello,
I have a requirement to apply hashing algorithm on flat file on one or more columns dynamically based on header
sample input file
ID|NAME|AGE|GENDER
10|ABC|30|M
20|DEF|20|F
say if i want multiple columns based on the header example id,name or id,age or name,gender and hash and... (13 Replies)
Hello All,
just wanted to export multiple tables from oracle sql using unix shell script to csv file and the below code is exporting only the first table.
Can you please suggest why? or any better idea?
export FILE="/abc/autom/file/geo_JOB.csv"
Export= `sqlplus -s dev01/password@dEV3... (16 Replies)
Discussion started by: Hope
16 Replies
LEARN ABOUT NETBSD
screenblank
SCREENBLANK(1) BSD General Commands Manual SCREENBLANK(1)NAME
screenblank -- screen saver daemon for wscons and FBIO machines
SYNOPSIS
screenblank [-k | -m] [-d inactivity-timeout] [-e wakeup-delay] [-f framebuffer] [-i input-device]
screenblank {-b | -u}
DESCRIPTION
screenblank disables the framebuffer if the keyboard and mouse are idle for a period of time, and re-enables the framebuffer when keyboard or
mouse activity resumes.
When killed with a SIGINT, SIGHUP, or SIGTERM, screenblank will re-enable the framebuffer. The pid can be found in the file
/var/run/screenblank.pid.
The options are as follows:
-b Overriding the other options, simply try (once) to blank the framebuffer, then exit.
-d inactivity-timeout
Wait the number of seconds specified by inactivity-timeout, expressed in the format ``xxx.xxx'', before disabling the framebuffer due
to inactivity. The default is 600 seconds (10 minutes).
-e wakeup-delay
Wait the number of seconds specified by wakeup-delay, expressed in the format ``xxx.xxx'', before re-enabling the framebuffer once
activity resumes. The default is .25 seconds.
-f framebuffer
Use the framebuffer device framebuffer instead of the default /dev/fb.
-i input-device
Add input-device to the list of devices to monitor for activity.
-k Do not check the keyboard for activity.
-m Do not check the mouse for activity.
-u Overriding the other options, simply try (once) to unblank the framebuffer, then exit.
Note that the -k and -m flags are mutually exclusive.
FILES
/dev/kbd The keyboard device.
/dev/mouse The mouse device.
/dev/console The console device.
/dev/fb The default framebuffer.
/dev/wskbd The keyboard for wscons machines.
/dev/wsmouse The mouse device for wscons machines.
/dev/ttyE0 The console device for wscons machines.
/var/run/screenblank.pid File containing the pid of screenblank.
BSD September 23, 2006 BSD