04-13-2005
Quote:
Originally Posted by criglerj
Um, it doesn't work in csh because "if [ $SHELL != /bin/sh ]; then" is not valid csh syntax.
it doesn't matter what shell you are using for your current environment, the script will use the shell you set it to use through the "#!" directive ...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All
Can you help me to validate a variable only for string and digit. That is
variable should either fully alphabets or digits.
Please send me result to my mail id also: REMOVED
Thanx in advance
Regards
Deepak Xavier (1 Reply)
Discussion started by: DeepakXavier
1 Replies
2. Shell Programming and Scripting
Hi,
Is it possible to use multiple shells in one script.
There are sometimes we need to club shell specific commands in single script.
for example in bash mode we use -e with echo to use Escape sequence but in ksh it is not required. How to tell a UNIX command to run in a specific shell.
... (2 Replies)
Discussion started by: sanjay1979
2 Replies
3. Shell Programming and Scripting
Hi
This is the list file that i have :
The files is more than this.
I will rename one by one file become like this :
So just change the time stamp 200906 become 200905.
Is it possible using script ?
Thanks (3 Replies)
Discussion started by: justbow
3 Replies
4. Shell Programming and Scripting
I have the following script running with nohup on one of my servers:
#!/bin/bash
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#set log number
#i=1
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#Check if log exits, if so incrememnt log number up so we don't clobber
#while... (8 Replies)
Discussion started by: DeCoTwc
8 Replies
5. Shell Programming and Scripting
Hi,
Getting below error on executing the shell script which initiates sqlplus
How to set oracle enviornment variables in the shell script ?
With Regards (3 Replies)
Discussion started by: milink
3 Replies
6. Shell Programming and Scripting
Hi all,
This is the first time i am using expect.
I am trying to call a function with in the shell script. The function will shh to a new server and will pass the password using expect and send. I need help in calling the fuction i am getting follaowing errors...
here the script
... (8 Replies)
Discussion started by: firestar
8 Replies
7. Shell Programming and Scripting
Hi to all,
i have the following problem...
i want to run three commands in a script in different shells... the first command is running always and is needed for the second on to run properly... example
# Procedure 1
xterm -e exec1 arg1 arg2
# Procedure 2
xterm -e exec2 arg1 arg2
#... (6 Replies)
Discussion started by: paladinaeon
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am getting the below error
: error at the if condition start and when I print the
value of TEST, it displays two values as below
/home/xyz/out/file1.txt
/home/xyz/out/file2.txt
if ; then
mv $TEST $TARGETDIR/
fi
Tried by enclosing it in double quotes "$TEST",... (4 Replies)
Discussion started by: sudhagk
4 Replies
9. Shell Programming and Scripting
Hi
I have a build.xml file and I can run it on Windows via cmd. Now I want to write a script to invoke the same. Is there a way to do this? (1 Reply)
Discussion started by: ankur328
1 Replies
10. UNIX for Dummies Questions & Answers
I appreciate if someone answer this question for my learning purpose:
Given a filename structure of a COUNTRY CODE, file type, date (YYYYMMDD) and two digit attempt number with an extension of ".dat", write a UNIX shells script to echo out the date value.
Example: ... (1 Reply)
Discussion started by: shumail
1 Replies
LEARN ABOUT PLAN9
suspend
suspend(1) User Commands suspend(1)
NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)
SunOS 5.10 15 Apr 1994 suspend(1)