10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to kill the process "test" for a maintenance I do but want the script to check when it comes back up.
I can get what I want when I run this while loop:
while true;do ps -ef | grep test | grep -v grep | sed -e 's/^*//';sleep 60;done
but I want the script to do it for me and as soon as... (6 Replies)
Discussion started by: seekryts15
6 Replies
2. UNIX for Advanced & Expert Users
I noticed some strange looking parameters on some processes on one of our servers, and after a little playing around we deduced that ksh seemed to be adding a (somewhat random) extra parameter when calling a script without a hashbang in it.
It looks like it's the partial name of the parent... (10 Replies)
Discussion started by: CarloM
10 Replies
3. UNIX for Dummies Questions & Answers
Hi
I searched this forum before posting the question, but couldnt find it, the issue
i'm facing is, i'm trying to select a column from a netezza table from a korn
shell script, but the query runs
var=$(nzodbcsql -q "select MAX(millcount) from table1";)
echo $var
it returns the value like... (10 Replies)
Discussion started by: maximus_jack
10 Replies
4. Shell Programming and Scripting
When i use ssh command to execute local script on remote server , I am unable to do it.
Please let me know how this can be done in ksh
req=abc
dte=ghd
ssh username@hostname "$req $dte" < run_script.sh (2 Replies)
Discussion started by: lalitpct
2 Replies
5. UNIX for Advanced & Expert Users
Hi.
I have a ksh script I want to run, but I'm connecting through a telnet and I don't want to FTP the scripts itself.
is there a way of running the script from command line ?
like ksh "The script itself..."
Thanks,
Ramon (4 Replies)
Discussion started by: mellowcandle
4 Replies
6. Shell Programming and Scripting
I am trying a set up a very simple korn shell script. It has 2 basic steps.
Firstly I read the first line of a text file (which is a file name)
Secondly I run a fortran executable using that line
I must be doing something wring because it wouldn't work. I know that the executable wants the... (4 Replies)
Discussion started by: larangunn
4 Replies
7. Solaris
Hi,
I am currently in the process of testing upgrading from Solaris 8 to Solaris 10.
one problem i have encountered is when i am running any of my batch scripts.
All my scripts start with #! /bin/ksh so that they will excuted in the ksh shell.
but the scripts will not run correctly. The... (3 Replies)
Discussion started by: dshakey
3 Replies
8. Shell Programming and Scripting
I have a script that runs fine under my home directory. No syntax errors, runs and returns as expected.
When I migrate the script to the UAT directories on the same server for User testing, I get a syntax error.
I've checked to make sure the .profile I'm using is the same in the UAT... (1 Reply)
Discussion started by: mpflug
1 Replies
9. HP-UX
Hi,
I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone.
And its not dumping core if we run the script using "/bin/sh" instead of "ksh"
Can some body please help me how to resolve this issue.
... (9 Replies)
Discussion started by: simhe02
9 Replies
10. Shell Programming and Scripting
Ih all,
i have multiples ksh scripts for crontab's unix jobs
they all have same variables declarations and some similar functions
i would have a only single script file to declare my variables, like:
var1= "aaa"
var2= "bbb"
var3= "ccc"
...
function ab { ...}
function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies