10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am new to shell scripting and i want to know how to execute the *.sql files from a folder through sqlplus in shell script and files should be execute in sequentially one by one while execution if any ORA error it has to exit from sqlplus session
1) scripts from external folder
2) logs has... (1 Reply)
Discussion started by: sreekanth Reddy
1 Replies
2. Shell Programming and Scripting
My script test.sh requires an argument and it could be present on a list of servers under a folder with name either in upper or lower case like below:
For example:
i want a generic command for calling the test.sh script and pass one argument
Below is what i tried but it is failing ... (10 Replies)
Discussion started by: mohtashims
10 Replies
3. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
4. Shell Programming and Scripting
How to execute multiple files in multiple folders and also output to be generated in the same folder?
Hello Team,
I have a path like Sanity_test/*/* and it has around 100+ folders inside with files. I would like to run/execute those files and output of execution to be placed on same /... (1 Reply)
Discussion started by: pushpabuzz
1 Replies
5. Red Hat
Hi All,
What is the use of execute permission for a folder.
I know "for execute a file(script file) we have to provide execute permission to that respective file".But what is the use to give execute permission to folder.Is it equal to read permission ?
Regards,
Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies
6. Programming
Hi
I have a bash script which takes parameters
sh /tmp/gdg.sh -b BASE-NAME -n 1 -s /source/data -p /dest/data/archive -m ARC
gdg.sh will scan the /source/data and will move the contents to /dest/data/archive after passing through some filters. Its working superb from bash
I have... (0 Replies)
Discussion started by: rakeshkumar
0 Replies
7. Shell Programming and Scripting
Hi,
I have one text file input.txt, which has folders path as follows:
/home/user/automate/abc
/home/user/automate/abc/xyz
/home/user/automate/test
/home/user/automate/test2
/home/user/automate/test2/abc/Main
In those folders i have .svn folder.
1) First i want to remove .svn like rm... (5 Replies)
Discussion started by: dragon.1431
5 Replies
8. Shell Programming and Scripting
$ grep edge test_1 |sort|uniq >result.txt
$more result.txt
edge-a-pas01.com 10.12.10.11
edge-b-pas02.com 10.12.10.12
edge-c-pas03.com 10.12.10.50
edge-d-pas03.com 10.12.10.10
how do we execute the above grep command using perl?
Thanks in advance. (3 Replies)
Discussion started by: sureshcisco
3 Replies
9. Shell Programming and Scripting
Hi I am trying to run 2 servers using a script one after the other.
I start the first one:
run.sh -c servername >> jboss_log.txt &
Then I have to wait until I see Started message in the log file before I launch the other server.
I can't use sleep because I am not sure how long it'll... (5 Replies)
Discussion started by: iririr
5 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
Need your assistance/advice.
I have 4 folders but using same name log file.
/user/access/server1
/user/access/server2
/user/access/server3
/user/access/server4
filename is access.log.20060716.gz
I want to grep the transaction id in the log file but I want to do... (2 Replies)
Discussion started by: nazri76
2 Replies