10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Folks,
I'm currently trying to read several values into different variables.
Actually, what I'm doing works, but I get an error message.
My attempts are:
read strCPROC strIPROC strAPROC <<<$(ssh -n -T hscroot@$HMC "lshwres -r proc -m $strIDENT --level sys -F \"configurable_sys_proc_units... (11 Replies)
Discussion started by: NKaede
11 Replies
2. Shell Programming and Scripting
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
3. Shell Programming and Scripting
Hi all, how read varaible and ouput in colum,
e.g.
$ echo $VAR1
opc op odi games gopher vcsa abrt
I like
$ echo $VAR1
opc
op
odi
games
gopher
vcsa
abrt (3 Replies)
Discussion started by: aav1307
3 Replies
4. Shell Programming and Scripting
I am reading an xml file with date tag as <Date>Default</Date> using the below command.
Dt=$(awk -F'' '/<Date>/{print $3}' /home/test/try.xml
and getting the value from the xml file stored in this variable "Dt"
echo $Dt gives me a value. Dt=Default.
Now according to my requirement, If... (2 Replies)
Discussion started by: Saidul
2 Replies
5. Solaris
Hi!
I have run the following command: snoop -q -d e1000g0 -o /var/tmp/optima0.txt & them I am trying to read the output of it with snoop -i /var/tmp/optima0.txt, which is giving me this: # snoop -i /var/tmp/optima0.txt | more
1 0.00000 AIOPTSVR -> 10.100.4.72 TCP D=1393 S=22 Push... (8 Replies)
Discussion started by: fretagi
8 Replies
6. Windows & DOS: Issues & Discussions
Hi all,
Is there a simple way to read a command output as a variable? I've running a batch file to do:
attrib.exe * | find /c /v "" >filecount.txt
but rather than write it to the txt file I'd like to read the total in as a variable to pass to the rest of the bat file...
Any help much... (1 Reply)
Discussion started by: Grueben
1 Replies
7. Shell Programming and Scripting
Hi. I'm trying to write a script that reads a line on a file and runs a different command for a different line output.
For example, if it finds the word "Kuku" on the line it sends mail to Kuku@kuku.com. Otherwise, it sends mail to Lulu@lulu.com.
TIA. (2 Replies)
Discussion started by: Doojek9
2 Replies
8. UNIX for Dummies Questions & Answers
Hey, guys!
Trying to research this is such a pain since the read command itself is a common word. Try searching "unix OR linux read command examples" or using the command substitution keyword. :eek:
So, I wanted to use a command statement similar to the following.
This is kinda taken... (2 Replies)
Discussion started by: ProGrammar
2 Replies
9. Programming
Hello All,
I have a an application written in C and runing on Red Hat Linux.
In my code I have written a command that is fired on the linux shell by using system() function call.
Now I need to read the output of this command in my c program and assign it to a variable.
Can anyone... (1 Reply)
Discussion started by: shamik
1 Replies
10. Shell Programming and Scripting
Hi all,
I'm creating a script which uses 'defaults read' to retrieve details from an Info.plist like this;
defaults read "/Path/Contents/Info" CFBundleShortVersionString
This works fine in Terminal and returns the expected values.
Is it possible to use this command in a script, and... (0 Replies)
Discussion started by: davewg
0 Replies