08-15-2007
Quote:
Originally Posted by
porter
What shell are you running normally?
What is it's complete path?
Try using that in the "#!....." first line.
Then switch to sh, by typing "sh", and then try and run the script.
It is bash shell.
But when I use "#!..." in the first line, it throws an error...always
Am not able to find the reason.
I tried #!/bin/sh and #!/bin/ksh
It doesn't work. What else do i need to try?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everybody,
I have a script in which I'm invoking another script which runs in a subshell.
after the script is executed I want to return to the parent shell as some variables are set. However i'm unable to return to my original shell as the script which i'm calling inside is invoked in... (5 Replies)
Discussion started by: gurukottur
5 Replies
2. Shell Programming and Scripting
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies
3. Shell Programming and Scripting
Hi,
I have a sheel script that invokes a perl script...Now, instead havin the perl script as a separate file I'd like put the contents in the sheel script itself...But I am not sure how ro run that perl script contents.please help me
Thanks (1 Reply)
Discussion started by: vijay_0209
1 Replies
4. Shell Programming and Scripting
Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Discussion started by: charlei
6 Replies
5. Shell Programming and Scripting
Hi, I am looking for a solution for the following problem:
Im Using tcpdump within a shellskript started in a subshell by using brackets: ( /usr/sbin/tcpdump -i ... -c 1 )
- I want the outout of tcpdump saved in a variable
- Than tcpdump-Process in the Subshell should be killed
- and I... (6 Replies)
Discussion started by: 2retti
6 Replies
6. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies
7. Shell Programming and Scripting
I want to execute my shell script on remote machine using SSH in perl script.
Please help me with syntax. (2 Replies)
Discussion started by: james1988
2 Replies
8. Shell Programming and Scripting
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
9. Shell Programming and Scripting
Hi all,
I have the following Perl script which is intended to run a Shell script and generate some logging for the purposes of tracking weather or not the script ran.
I get an error, of course, since I don't know what I'm doing really.
Here is the code:
#!/opt/perl/bin/perl -w
... (14 Replies)
Discussion started by: zixzix01
14 Replies
10. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT DEBIAN
cvsconnect
CVSCONNECT(1) CVSCONNECT(1)
NAME
cvsconnect - CVS connection minimizer
SYNOPSIS
cvsconnect cvsroot [command-to-run ...]
DESCRIPTION
CVSconnect enables you to do multiple CVS operations on single network connection. CVSconnect sets up special environment using
$CVSRSH/$CVSROOT for the command line CVS client. In the environment, the command line CVS client reuses a network connection.
CVSconnect is especially designed to use with CVSsuck. And CVSconnect (or similar) will be integrated to a future version of CVSsuck.
However, it is planned that CVSsuck directly connects to a cvs server without cvs command.
EXAMPLES
cvsconnect $HOME/.cvsroot
BUGS
o The global option -z for compression cannot be used. If you use SSH via ext method, you can use compression by SSH instead.
o CVS client must be run at a time. Running two or more clients at a same time will make a trouble. (will be fixed in future release.)
o Some static variables in a CVS server may confuse you. It's a CVS bug. Report it to CVS developer :-).
o Command line CVS client must request `Root' first. Don't mind. There is no implementation which violates this assumption, however I
know. At least, CVS-1.10 and CVS-1.11 should work.
NOTES
o When CVS command is failed, CVSconnect automatically re-run the command with reconnected connection when CVS command is failed.
Especially the failure is caused by a long running CVS-1.10 server. Since CVS-1.10 doesn't close some file descriptors, a long running
CVS server will exceed a limit of file descriptors.
o /bin/sh should be POSIX sh because this script uses ${parameter#pattern}, etc. If your /bin/sh is ancient Bourne shell, use ksh or
bash.
SEE ALSO
cvs(1), cvssuck(1).
AUTHOR
This manpage is written by Piotr Roszatycki <dexter@debian.org> for Debian distribution and can be freely redistributed.
Debian 2011-08-30 CVSCONNECT(1)