There must be more to that script. You use lots of variables you never defined, and a function doesn't call itself.
An explanation of why you're grepping for SCREEN would be good.
The contents of this $SRV.sh would be good to see too.
If you save the PID's of the servers you're running, you won't have to use ps | awk | grep | cut | sed | kitchen | sink to see if they're running -- just check the PID. Much simpler and more reliable. How to do that depends on how they're run in the first place...
Do you have the start-stop-daemon command available?
---------- Post updated at 01:53 PM ---------- Previous update was at 01:47 PM ----------
Hello, I am new at this forum so please bare with me on this.
Within a given directory, I have a list of files in which in each file, I would like to do a substitution. I would like to substitute the string mlcl to mll in each file using the foreach command. I dont quite get how to do that. If... (7 Replies)
Hi Guys,
I have a loop which uses a wildcard
i.e. foreach f (*)
but when I execute the tcsh file in unix then it gives me an error
->>>>>>>foreach: words not parenthesized<<<<<<<<<<-
Any help. (1 Reply)
In a foreach loop, is it possible for the loop to go through 2 arguments instead of one
i.e. instead of foreach i (do stuff for i), we have foreach i j(do stuff for i; do stuff for j)
I am working under BASH and TCSH shell environments
cheers (3 Replies)
Hi everyone
Does anyone know what is wrong with this script. i keep getting errors
foreach filename (`cat testing1`)
set string=$filename
set depth=`echo "$string"
echo $depth
end
the error is the following
testing: line 1: syntax error near unexpected token `('
testing: line 1:... (3 Replies)
Hi All,
Is there any problem with the below 'foreach' loop?
foreach risk_factor ($(cat "$rf_list"))
where "rf_list=$SCRIPT/Utility/rflist.txt "
I'm wondering, it is throwing below error message:
syntax error at line 34: `(' unexpected
Any idea/suggestions ?
Thanks in advance /... (7 Replies)
So I am back again beating my head against the wall with a shell script and getting a headache! I want to change each year in a file (1980, 1981, 1982, 1983, etc.) to the same year followed by a tab.
The input is "blah blah (1980) blah blah".
I want to get "blah blah (1980 ) blah blah".... (2 Replies)
Dear all,
I wrote a script to download files and move files in directories according to their name.
Now here is the problem:
Both p101 and p360 data download successfully, but when I move them according to the year and month, only p101 data can be placed at the right location, p360,... (1 Reply)
Hi everyone I'm new to unix and encountered a small problem i couldnt find out a reason why it doesn't work..please help..
in my csh script when i tried to use the foreach loop like this:
foreach x ( ls )
echo $x
end
when i tried to run it, it printed out 'ls' to the std out instead of... (3 Replies)
I need to put together a script that will take the contents of two different files (database name and database owner) and put them in two variables within a line:
foreach x (`cat /local/hd3/dba/tools/build_db_scripts/dbs`)
foreach z (`cat /local/hd3/dba/tools/build_db_scripts/dbas`)... (6 Replies)
Discussion started by: deneuve01
6 Replies
LEARN ABOUT HPUX
cdsadv
cdsadv(1m)cdsadv(1m)NAME
cdsadv - Starts the CDS client daemon
SYNOPSIS
cdsadv [-c] [-D] [-s] [-w route]
ARGUMENTS
Specifies cache size in kilobytes. Changing cache sizes causes previously cached information to be discarded, including information about
cached servers, so use of this option may necessitate defining a new cached server. NOTE : Alternatively this can be done by using the
tunable parameter cdsadv.cache_size provided in the /opt/dcelocal/etc/cds.conf file. This parameter takes a cache size in KiloBytes as
shown:
cdsadv.cache_size: 512 and sets the cdsadv cache size to 512 KiloBytes. cdsadv needs to be restarted for this value to be effective.
This is the recommended method to set cdsadv cache size. For debugging use only. Causes the cdsadv process not to fork. Causes the cdsadv
not to send or receive advertisements. This argument can be used for diagnostic work involving multiple servers on the same local area
network to limit access to those servers identified with the define cached server command. Routes serviceability messages.
DESCRIPTION
The cdsadv command starts the CDS client daemon.
Privilege Required
You must log in as superuser (root).
NOTES
This command is ordinarily executed by a DCE configuration or startup script. You should use this command interactively only when cdsadv
fails to start automatically after a reboot, or if you want to restart cdsadv after disabling it to perform a backup or to do diagnostic
work on the host system.
EXAMPLE
To restart cdsadv, follow these steps: Log in to the clerk system as superuser (root). Verify that the dced process is running. Enter the
following command to restart the cdsadv process:
# cdsadv
RELATED INFORMATION
Books: OSF DCE Administration Guide
cdsadv(1m)