10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script to start/stop/restart the tomcat application. When we run the script first time i.e stop/start it set all env variables(DISTRIB_ID,NAME,TOMCAT_CFG,....etc),but when we restart the tomcat it is running in the same shell.....I need to set the variables when i restart the tomcat(in the... (1 Reply)
Discussion started by: praveen265
2. UNIX for Dummies Questions & Answers
I have a file at remote server. I have to select only current day's files that are dropped on ftp server. The files do not have date or timestamp on them.
so I plan to get the file listing from remote server to the local server. Based on file listing date I can find out when the files... (2 Replies)
Discussion started by: pavan_test
3. Shell Programming and Scripting
I'm wondering, is the number of variables will affect execution time of my bash script or maybe affect the cpu workload, cpu memory, etc ?
If I create so many variables, should I unset each one of that variables after I used them or after I think they are no longer needed?
and if my script... (2 Replies)
Discussion started by: 14th
As I know threads share the memory. But, what about the local variables in the thread function? if i call multiple threads would they allocate seperate local variables for themselves?
int i, j;
Are the above local variables defined for each of... (1 Reply)
Discussion started by: saman_glorious
5. Shell Programming and Scripting
Is there any way to check exit status of unset variables?
In the following code PathX is not set and the script terminates without checking exit status.
echo "Exit Status : non zero"
echo "Exit Status :... (2 Replies)
Discussion started by: sussus2326
6. Shell Programming and Scripting
can I use unset to unset all the variables in a shell sciprt?
whether this unset will afftect any system variables?
Thanks, (3 Replies)
Discussion started by: balamv
7. Shell Programming and Scripting
(I think this question desearves separate thread..)
I have a problem with 'while'
I am trying to set variables by 'while' and it is fine inside, but after completting the loop all changes are lost:
> bb="kkkk - 111\nlllll - 22222\nbbbb - 4444"
> echo "$bb"
kkkk - 111
lllll - 22222
bbbb -... (3 Replies)
Discussion started by: alex_5161
8. Shell Programming and Scripting
In my script I need to list the directory, where the generic name of the files will change, in my test case its set to TEST_*.mqsc. I wrote a small test script as below, but it just does not pip the listing to a file.
Any idea why?
ls $dir... (4 Replies)
Discussion started by: gugs
9. 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
10. UNIX for Dummies Questions & Answers
I am trying to do an rsh and execute the same script on a distant unix computer.
The problem is that I need to get all the local variables of the distant computer to launch correctly my script.
I'm working on AIX 4.3.3
I try to execute .profile in the rsh but it seems not to be... (1 Reply)
Discussion started by: jo_aze