10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Help,
Is it possible to continue the loop by going to the next available value, if the 'expected value' is not found. I have a list of values which might not get incremented by fixed value and hence the loop could break and the script could terminate.
Any suggestion is appreciated.
... (1 Reply)
Discussion started by: Indra2011
1 Replies
2. Shell Programming and Scripting
i have script which get Input via READ value and compare it from file.
when found do some stuff...if not found again ask for Input until you dont enter Right value.
#!/bin/ksh
echo "SID must be in oratab file"
echo "Enter ORACLE_SID of Database:\c "
read ORACLE_SID
x=`cat /etc/oratab|... (3 Replies)
Discussion started by: tapia
3 Replies
3. Shell Programming and Scripting
Hey all. First-time poster, long-time reader
I'm on Mac, and I've written a long script to open up a maximum of 20 Terminal windows and run a subscript with a different input in each of them. When each of these sub-scripts finishes, it changes the value of a variable ("$windows") by -1, which... (4 Replies)
Discussion started by: Diabadass
4 Replies
4. Shell Programming and Scripting
Okay so I am having trouble understand what the computer will do with a code like this
if ; then
echo
echo "Found the file"
blah blah blah
for i in `blah blah blah` ; do
... (2 Replies)
Discussion started by: shade917
2 Replies
5. Shell Programming and Scripting
How can I get a script to complete a update, varifiy completion, resboot, and continue with script?
Is it possbile to get script to add itself to the "startup application" list
#!/bin/bash
clear
sudo apt-get update
#Verify/test the update completed
#Reboot
#Start/comtinue... (9 Replies)
Discussion started by: wolfgangcs
9 Replies
6. Shell Programming and Scripting
Hi all, This will save me a tremendous amount of time if i can get this script working. I have alot of sites i need to connect to using cisco vpn and then ssh onto servers to retrieve some info. Its all repetitative and it needs scripted.
what i have done so far is put this into a script.
... (0 Replies)
Discussion started by: borderblaster
0 Replies
7. Shell Programming and Scripting
I want to print entire row of file
awk '{print $0}' inputfile
but sometime before every row have space characters. Example:
" HVLR is not in service on AP 54"
How can i print entire row without space characters ?
thanks (3 Replies)
Discussion started by: anhtt
3 Replies
8. Shell Programming and Scripting
The following code for search a pattern in file name (or entire file name) and look at its size, code is derived from an ebook about scripting. It is working in HP Unix but I am unable to run in Linux (Ubuntu) Please advise me what is wrong for Linux?
And besides , how can I get rid of errors in... (7 Replies)
Discussion started by: xramm
7 Replies
9. UNIX for Advanced & Expert Users
I was in the middle of transferring a file over a slow link (768k) using 'scp'. The system on this end got rebooted by an overzealous co-worker... I've got 500+ megs of the file here and 725 megs to go. I'd really hate to start over. I fear that the answer to my question is that I will have to... (3 Replies)
Discussion started by: deckard
3 Replies
10. Shell Programming and Scripting
I have written a script which does a following functions:-
1) Check a area if it is mounted or not
2) If the area is not mounted it will prompt the user to mount the are.
3) Once the area is mounted and the option is given as Y or y
the script continues...
My question is will the below... (2 Replies)
Discussion started by: kamlesh_p
2 Replies