9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have created a variable say today at the begin having 123 as its value and inside a for loop it gets resolved to some value say 150 in its first iteration.
How can I use this value 150 ( 1st iteration's ) outside the scope of for loop ?. In the same way I wanted to use all iteration's... (1 Reply)
Discussion started by: penqueen
1 Replies
2. Shell Programming and Scripting
Hi All,
Im new to shell scripting. I am running EgA.sh and setting one global variable XYZ=0 . Also calling another EgB.sh from EgA.sh, changing the value of XYZ=10
but after executing EgB.sh, value of XYZ is still 0. Im expecting it to be 10.
Anyone for help. Thanks in Advance. :) (5 Replies)
Discussion started by: paliwal
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a script which can be called from any path on the machine. It kind of acts like a global script. How do I achive this? :confused:
The path from which I call it is different from the path where it exists.
(where <script name> )
Thanks and Regards,
Preetham R. (1 Reply)
Discussion started by: preethgideon
1 Replies
4. HP-UX
I am seeing different output from "who -u" when we execute "who -u" in global INIT and local SRP after calling telnet, rlogin and remsh. We are not seeing correct output when we login to local SRP using telnet, rlogin and remsh.
srp_init just creates an UTMP entry in the UTMP database. Based my... (1 Reply)
Discussion started by: madhur.tripathi
1 Replies
5. Solaris
is this the step?
add fs
set dir=/export
set special=/export
set type=lofs
add options rw
end
i notice i can't post immediately, moderator needs to moderate. i have 1 more post still haven't appear in the forum..hmm.... (1 Reply)
Discussion started by: binary0011
1 Replies
6. Shell Programming and Scripting
Hi Guyz,
I have a requirement like, i have to run a script every hour to count the number of errors encountered.
At the end of the day, i need to send them the total number of errors, that have ocurred the entire day.
For eg. if 10 errors occurred for starting 1 hr, 5 for next 1 hr, so on.... (1 Reply)
Discussion started by: DTechBuddy
1 Replies
7. Shell Programming and Scripting
I have written a shell scritp in which i am using a variable which is declared before a while loop and i am updaitng the variable in while loop and want to use its updated value outside the loop. I am not able to do so, b'coz the scope of the variable is limited to the while loop only and when i am... (5 Replies)
Discussion started by: deepanshu
5 Replies
8. Shell Programming and Scripting
Guys, how can I define global variables in sorlaris...cause I lose the values outside the scope.
Rite now wat I do is,I redirect variable value to a file n then get it back outside the function...:o....theres obviously a better way of doing this...I now this is a basic question....but please... (2 Replies)
Discussion started by: qzv2jm
2 Replies
9. Programming
Please go through the following two versions of code :-
Version 1 --- string1 and string2 declared as Global variables
The output is :-- (as expected sprintf is overwriting the first byte of string2 with NULL)
string1=send
string2=
#include <stdio.h>
char string1;
char string2;
main()... (2 Replies)
Discussion started by: kms
2 Replies