10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Gents,
I have a script which will run others scripts .
Example
#!/bin/bash
script1
script2
script3
script4
I would like to stop all process if any of the script got errors?. If for example script1 works fine will continue script2, then if the script2 got errors, The bash should... (2 Replies)
Discussion started by: jiam912
2 Replies
2. Solaris
Hi,
I am having a shell script on Solaris 10 which has a while loop as shown below.
#!/usr/bin/ksh
#
while
do
sleep 60
done
Name of the shell script is coldcentric.sh. I executed script /DATAWAREHOUSE/LOAD/Scripts/coldcentric.sh from a command task in Informatica worklow as... (3 Replies)
Discussion started by: chekusi
3 Replies
3. Shell Programming and Scripting
#!/bin/ksh
number1="20"
if
then
number1=$1
fi
number2="1"
while ]
do
if ]
then
print "FizzBuzz"
elif ]
then
print "Fizz"
elif ]
then
... (3 Replies)
Discussion started by: bjhum33
3 Replies
4. Emergency UNIX and Linux Support
I am database guy and not very good at shell scripts. I am seeking help to sharp my script coding. I have 5 scripts
1. master script. I use this one to call other four scripts to do database work.
2. db_backup_1 and log_backup_1
3. db_backup_2 and log_backup_2
in master script, I want to... (4 Replies)
Discussion started by: duke0001
4 Replies
5. UNIX for Advanced & Expert Users
Hello,
I am writing a shell script in which i do ssh to remote server and count the number of files there and then exit. After the exit the shell script terminates which i believe is expected behavior. Can some one suggest me a way where even after the exit the script execution resumes.
... (2 Replies)
Discussion started by: manaankit
2 Replies
6. UNIX for Dummies Questions & Answers
I have a simple script that processes files. Here's a simplified example of what I'm doing:
foreach t (web.*)
mv $t dnw$t:e.log
end
foreach t (card.*)
mv $t card$t:e.log
end
The problem is that sometimes there is no web.* file. In that case, I get an error "foreach: No match" and... (4 Replies)
Discussion started by: software5723
4 Replies
7. Shell Programming and Scripting
hey watsup guys
i am new in the shell script world. so i need help fom you guys, i have written these two codes and they both give the same errors( expr : syntax error).
Code 1 :
#! /bin/sh
# count1 appends an increment to a file 200 times
# note that a file called numbers must be... (5 Replies)
Discussion started by: surubi_abada
5 Replies
8. Shell Programming and Scripting
Hi
I have written a script which returns a number. This resulting number I assign to the variable for example:
$ A=`get_dbnum 118 ttrn`
$ echo ${A}
8208
$
The script becomes interective once the error occures and the number is not found. It prompts the user to enter the number. The... (1 Reply)
Discussion started by: aoussenko
1 Replies
9. Shell Programming and Scripting
I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test.
The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies
10. UNIX for Dummies Questions & Answers
#!/bin/ksh
sqlplus -s user/passwd@remoteserver << EOF > errors2.log
set pagesize 0 feedback off verify off heading off echo off
select directory_nm || '/' || file_nm || '|' ||venue_id || '|' || time_id from file_control;
EOF
The output of this script is;
... (2 Replies)
Discussion started by: pavan_test
2 Replies