Viewing 1 to 4 of 4 items
Tag Archives: Sleep

How to check if process is running?

To me this script looks fine. Can somebody please assist me in finding what the problem is. Thank you Code: #!/bin/bash #———————————————————————————————————————- #This script allows the user to import a dsx file # # Usage: #./import.sh -s -d -r -f # #———————————————————————————————————————– dbname=”$dbname” dsn=”$dsn” dsxfile=”$dsxfile” rangechk=”$rangechk” verbose=”” reverb=”” module=`basename $0` DSXLOG_MODULE=$module export DSXLOG_MODULE dsxdir=”/var/local/dsx/import” dsximp=”/usr/local/bin/dsximp.exe”  Full Article…

0

Check if program is running with bash shell script?

This is an example of a bash script which checks for some running process (daemon or service) and does specific actions (reload, sends mail) if there is no such process running. check_process(){ # check the args if [ “$1” = “” ]; then return 0 fi #PROCESS_NUM => get the process number regarding the given  Full Article…

0