Computing.Net > Forums > Unix > assigning a variable to a script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

assigning a variable to a script

Reply to Message Icon

Name: Anusha.R
Date: September 16, 2003 at 00:27:08 Pacific
OS: Win 2k
CPU/Ram: P IV & 64kb
Comment:


Hi,
i have grepped a process number from a file & redirected to temp file. from temp file, I should assign process number to a variable "pnum".
to execute a script
Select statistics pnumber= summary=no;
I am unable to assign the variable to the script.
#!/bin/ksh

set pnum=cat temp | tail -1 temp
echo "$pnum " #variable pnum value is displayed(ex 16244)

select statistics pnumber= summary=no;
# here i am unable to assign the variable value

I need your comments & Kindly tell me the mistake
Does it require a conversion - string to a number

it would be a great help
thank u
anu



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: assigning a variable to a script

Prob Assign Row count to a variable www.computing.net/answers/unix/prob-assign-row-count-to-a-variable/7875.html

Assignment of Variable www.computing.net/answers/unix/assignment-of-variable/7529.html

assigning a variable www.computing.net/answers/unix/assigning-a-variable/5569.html