10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello All,
just wanted to export multiple tables from oracle sql using unix shell script to csv file and the below code is exporting only the first table.
Can you please suggest why? or any better idea?
export FILE="/abc/autom/file/geo_JOB.csv"
Export= `sqlplus -s dev01/password@dEV3... (16 Replies)
Discussion started by: Hope
16 Replies
2. Shell Programming and Scripting
Hey everyone! I made a shell script that would go through a file and replace any phrase or letter with another phrase or letter. Helps update variable names or values. The following code is this:
#!/bin/sh
Word1="$1"
Replace1="$2"
File1="$3"
arg=$( echo "$Word1" | sed 's:\:\\&:g' )... (3 Replies)
Discussion started by: rebmonk
3 Replies
3. Shell Programming and Scripting
I've been bitten by using a lock or pid file to prevent multiple instances of a script. A user typed kill -9, and the pid file didn't go away. You can't trap -9. So when he tried to restart, it said "already running", and I got trouble report. Argh.
So here's what we came up with:
# Stop if... (1 Reply)
Discussion started by: McFadden586
1 Replies
4. Shell Programming and Scripting
Please help me in writing a shell script which connects to a Oracle instance and tables to get the required information...:wall: (1 Reply)
Discussion started by: Dpu
1 Replies
5. Shell Programming and Scripting
Hi all,I have some questions of forking new process,the code is below.Any help will be appreciated.
1 #! /bin/bash
2
3 PIDS=$(pidof sh $0)
4 P_array=( $PIDS )
5 echo $PIDS
6 let "instances = ${#P_array}-1"
7
8 echo "$instances instance(s)" of this script running."
9... (4 Replies)
Discussion started by: homeboy
4 Replies
6. Shell Programming and Scripting
Hello Forum,
I have prepared script to monitor the tomcat status. Following is the script which will monitor tomcat instance.I need little modifcation in the script. My script will grep for java,the output of grep command will analyze by if condition under for loop and will
send following echo... (7 Replies)
Discussion started by: coolguyamy
7 Replies
7. Shell Programming and Scripting
Hi Gurus,
I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Discussion started by: sexyTrojan
5 Replies
8. Shell Programming and Scripting
I am trying to debug the following script. It appears that when the check for script running occurs, it's finding the actual grep statement and causing the script believe the script is already running. This is deployed on two different servers where one works fine, the other doesn't. Any ideas?
... (2 Replies)
Discussion started by: DaddyMoose
2 Replies
9. Shell Programming and Scripting
Hi All,
Requirement is to fetch hostname and instance name using shell script from all configuration files on a server R12 on IBM AIX...
could anyone please share such an experience encountered before.Is there such a script available in this forum or any other site..
Thanks for your time!... (0 Replies)
Discussion started by: a1_win
0 Replies
10. Shell Programming and Scripting
Hi,
I have a shell script. What should I do to allow only single instance of the script to be run by a user at a time. That is, Only one user can run that script at a given point of time.
Please help..
Its very important for my project
Thanks in advance (4 Replies)
Discussion started by: pathanjalireddy
4 Replies