Search Results

Search: Posts Made By: ysrinu
13,417
Posted By ysrinu
Hi, i tried sed -n -e 'N; /No Value Found/p'...
Hi,
i tried
sed -n -e 'N; /No Value Found/p' yourfile.txt

but it only prints the previous line for the first match only.
thereafter only matching lines are printed and not their previous lines....
46,977
Posted By ysrinu
Thanks to all for the solution. -A, B, C...
Thanks to all for the solution.
-A, B, C options are not supported.
Using HP-UX 11.11

Now, can i print just the previous line and the matching line?
cat replace_all* | sed -n -e 'N;/Failure/p;'...
1,692
Posted By ysrinu
Check if script run by a user directly or via other scripts
Hi,
i have a script 'a.sh' that should be called only by certain scripts like b.sh, c.sh

Inside a.sh, how can i determine
1) if this script was run directly from command prompt (or scheduler)...
46,977
Posted By ysrinu
Thanks Jim, this worked. -srinivas
Thanks Jim, this worked.
-srinivas
46,977
Posted By ysrinu
Print previous, current and next line using sed
Hi,
how can i print the previous, current and next line using sed?
current line is the matching line.

The following prints all lines containing 'Failure' and also the immediate next line
cat...
10,993
Posted By ysrinu
Trigger a job on autosys failure
Hi,
we have thousands of autosys jobs scheduled. I want a common job or script to be triggered if any of the autosys job fails? Now, obviously i cannot have a new autosys job with condition as...
20,206
Posted By ysrinu
hi, the $AUTO_JOB_NAME returns the parent...
hi,
the $AUTO_JOB_NAME returns the parent autosys job name.
To find more autosys variables visible inside the called script,
call 'printenv' in this script, and in the output you can identify...
20,206
Posted By ysrinu
autosys job name in the called script
Hi,
i have an autosys job 'AUTJOBA' that calls a script script1.sh

Now, inside the script i would like to know the autosys job that kicked off this script.
When AUTJOBA runs script1.sh, will it...
60,052
Posted By ysrinu
I got the solution, In s1.sh script: ...
I got the solution,

In s1.sh script:
---------
capture pid of current script
S1PID=??

#call s2.sh in the background
s2.sh &

#capture the pid of the most recent background process...
60,052
Posted By ysrinu
thanks Madhan. Now, i really don't want to...
thanks Madhan.

Now, i really don't want to run in background.
Also i want to get the pid and return code of the called process, once it's finished.

Thanks
32,634
Posted By ysrinu
Hi, i got the answer autorep -J EMP% -q ...
Hi,
i got the answer

autorep -J EMP% -q
returns all autosys jobnames starting with EMP and their
corresponding attributes like command, machine, ...

Thanks
205,422
Posted By ysrinu
Hi, i got the answer autorep -J EMP% -q ...
Hi,
i got the answer

autorep -J EMP% -q
returns all autosys jobnames starting with EMP and their
corresponding attributes like command, machine, ...

Thanks
60,052
Posted By ysrinu
How to get process id of called process
Hi,
inside my script s1.sh i am calling another script s2.sh
After s2.sh finishes, i want to print the process id of the s2.sh (that was used)
I can't use ps -ef command, since by this time s2.sh...
205,422
Posted By ysrinu
hi, i have a question related to 'autorep'...
hi,
i have a question related to 'autorep' command

How can i use unix shell command to get the autosys commands
for a set of given jobs?

autorep -J EMP% -w
returns all autosys jobnames...
32,634
Posted By ysrinu
autorep command to get autosys command
Hi, how can i use unix shell command to get the autosys commands
for a set of given jobs?

autorep -J EMP% -w
returns all autosys jobnames starting with EMP and runtimes

However, i also want...
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 04:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy