10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am calling a subroutine which checks if a log file is writeable and if not, prints something stdout and also log something into the same file, which doesn't work neither of course.
Anyway, there is enough exit() calls, that should stop it working, but the problem is, that I get the... (5 Replies)
Discussion started by: zaxxon
5 Replies
2. Shell Programming and Scripting
Dear all,
We have a service that we start up remotely with rsh but unfortunately, the rsh never returns to the calling server. This seems to be because the processes of the service we've just started hold the port open.RBATTE1 @ /home/RBATTE1>netstat -na|grep 49.51
tcp4 0 0 ... (1 Reply)
Discussion started by: rbatte1
1 Replies
3. Shell Programming and Scripting
Hi all,
Please guide me writing this script
Follwing is the file which I have created, which contains the files to be copied.
cat system1-dr.txt
/etc/passwd
/etc/shadow
/etc/group
/etc/vfstab
/etc/profile
/etc/default/init
/etc/shells
/etc/dfs/dfstab
/etc/dfs/sharetab... (11 Replies)
Discussion started by: manalisharmabe
11 Replies
4. Emergency UNIX and Linux Support
Below for loop not exiting. Can someone help?
JBOSS_INST_ARGS=01 02
if ; then
for i in $JBOSS_INST_ARGS; do
/u/jboss-6.1.0.Final/bin/jboss_init_wise$i.sh start;
done (8 Replies)
Discussion started by: vino_hymi
8 Replies
5. HP-UX
Hello;
Am experiencing odd problem with ssh:
=========
ssh -vvv remote_host
:
:
debug2: channel 0: rcvd adjust 65536
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0... (4 Replies)
Discussion started by: delphys
4 Replies
6. Shell Programming and Scripting
Whats the wrong with the following code:
if ; then
echo "File XYZ Exist"
if ] ; then
echo "File abc is not empty, script continues"
else
echo "File abc is empty, script aborts"
exit 0
fi
else
echo "File XYZ does not exist"
exit 0
Error: testscript.ksh:... (3 Replies)
Discussion started by: karumudi7
3 Replies
7. Shell Programming and Scripting
This code is used to check for duplicate ip and hostnames in an /etc/hosts file
CENTRAL is path to /etc/hosts
AWK =awk
#check CENTRAL for duplicate ips or hostnames#
grep -v "^#" $CENTRAL | $AWK '{ print $1, $2; }' | \
while read ip hostname
do
if... (5 Replies)
Discussion started by: trimike
5 Replies
8. Shell Programming and Scripting
hi,
how to exit from "if" loop?actually i have mutliple "if" conditions, i have to exit from each "if" loop,if it is true...:confused:
Please suggest me... (3 Replies)
Discussion started by: sreelu
3 Replies
9. Shell Programming and Scripting
im running a while loop as a file watcher, with incremental counter on the retries..however when the retries reach it's limit i want it exit and echo and error and stop the batch. Im not sure the code i have will do that already...
Here is what i have that works:
#!/usr/bin/ksh
count=0... (2 Replies)
Discussion started by: sigh2010
2 Replies
10. Shell Programming and Scripting
i wrote a while script as part of a huge program. this script, once picked, begins to output data to the person using it. pretty easy, as the person doesn't have to keep typing commands to get the output that the while loop automatically throws out.
now, the thing is, while this while-script... (3 Replies)
Discussion started by: Terrible
3 Replies