10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in to the servers in the file list, and SUDO to the SAP(ADM) user, but it won't do anything else... (11 Replies)
Discussion started by: icemanj
11 Replies
2. Shell Programming and Scripting
PS3="Enter corresponding number and hit enter:"
select DIR in `cat mylist` QUIT
do
if
then
echo "INVALID INPUT"
else
if ; then
my commands .....
else
break
fi
fi
REPLY=''
done
The above will return something like below :
Select from the list of... (4 Replies)
Discussion started by: ningy
4 Replies
3. UNIX for Dummies Questions & Answers
Hi all ,
I want to pass contents from a file say f1 as arguments to a sql query which has In statement using a script
example
select * from table_1 where login in ( `cat f1`) ;
will this work or is there any other way to do it. (1 Reply)
Discussion started by: zozoo
1 Replies
4. Shell Programming and Scripting
Hi Everyone,
1) I really cannot figure out how to pass multiple user inputs in a script. really need your help re this. below is the script.
-----------
#!/bin/sh
# script name: ask.sh
echo "Enter name: \c"
read NAME
echo "Your name is $NAME\n"
echo "Enter age: \c"
read AGE
echo... (5 Replies)
Discussion started by: mcoblefias
5 Replies
5. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
2. Relevant commands, code, scripts, algorithms:
We have to do this using 'unix tools' and not use the script as if it were C. Meaning, he wants more uses of grep, sed, awk, cut, etc... than he does while, for, do's and done's.... (23 Replies)
Discussion started by: theexitwound
23 Replies
6. Shell Programming and Scripting
Running on AIX 5.3L.
I have a program "foo" written in Fortran that requires 3 levels of inputs from stdin (command prompt).
> foo
Enter Input 1: a
Enter Input 2: b
Enter Input 3: c
running foo
success!
>
How do I get a shell script to run this automatically?
> echo "a" | foo... (2 Replies)
Discussion started by: discoganya
2 Replies
7. Shell Programming and Scripting
How do we pass multiple arguments into awk :
name=john
age=12
now i have to pass both age and name into awk.. how to do it?
like : awk -v var=... (4 Replies)
Discussion started by: abhinav192
4 Replies
8. Shell Programming and Scripting
I'm trying to upgrade a whole bunch of pages on my site to a new design.
I thought one way of doing it would be to enclose the content in special comment tags and then use some form of script to wrap the new html around it. Like this:
<!-- content start -->
<h1>Blah blah blah</h1>
yada yada... (9 Replies)
Discussion started by: dheian
9 Replies
9. Shell Programming and Scripting
Hello,
I am wanting to know a way to shell (ksh)script-edit a file by having a script that searches for a specific string, and then input lines of text in the file after that specific string. Please help, as I will be up all night if I can't figure this out. (16 Replies)
Discussion started by: LinuxRacr
16 Replies
10. Shell Programming and Scripting
I am trying to close of multiple users in an Oracle database. Each users has records in multiple tables what I need to do is use a script that call each SQL seperately passing either CLI arguments or gathered arguments from the users during run time.
## Accept variable(s) from the command line... (1 Reply)
Discussion started by: jagannatha
1 Replies