execute a shell script in a shell script
I have been stumbled on this issue, please see below. I am unable to
execute a shell script in a shell script.
I need to use perl script but not others and have tried eval, -exec
and other on perl script but failed.
system"cleartool setview -exec \"cleartool describe -fmt 'On %Sd
modified %En and comment:\n %c\n\n' /myproject/vob/myprogram.C\"
On Dec 3, 8:30 am, moongeegee <moongee...@gmail.com> wrote:
> Please help.
> I have been stumbled on this issue, please see below. I am unable to
> execute a shell script in a shel...XEmacs shell-script-mode vs. Emacs shell-script-mode[bash]
I've noticed the shell-script-mode I get with Emacs behaves differently from
that which I get with XEmacs. In particular the Emacs version provides a
hard indentation feature (I don't know the formal term for hitting Tab to
indent code to reflect the syntactic structure, but that's what I mean).
Can I configure XEmacs (latest CVS) to support hard indentation when
editing bash scripts?
p->m == (*p).m == p.m
>>>>> "Hattuari" == Hattuari <email@example.com> writes:
Hattuari> Can I configure XEmacs (latest CVS) to ...web hosting, shell provider, unix shells, bnc shell, ircd provider, shell hosting, bnc shells, irc shells, ircd shells, unix shell account, irc shell, irc, eggdrop shell, irc vps, irc shell, linux vps
web hosting, shell provider, unix shells, bnc shell, ircd provider, shell
hosting, bnc shells, irc shells, ircd shells, unix shell account, irc
shell, irc, eggdrop shell, irc vps, irc shell, linux vps
questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad firstname.lastname@example.org
...handling SIGINT in shell scripts when executing another shell script.
I have a simple shell script foo1.sh that invokes another shell script
foo2.sh, something like below:
echo "## [$DATE_TIME] User interrupt ignored,"
trap SIGINT_handler 2
while executing foo1.sh, if the script receives SIGINT, how do I ignore
the SIGINT in foo2.sh ? somehow foo2.sh does not finish to completion
and is killed after receiving SIGINT. but foo1.sh is still executing.
Is there any way to trap this signal in the child script. ? Please
share your thots and inputs on this topic.
Vikram S...Korn shell scripts not spawning or calling other scripts in AIX
I have a problem on an AIX server. We use a set of scripts to do
monitoring and maintenance chores on some AIX servers that contain our
Oracle databases. On one server, the scripts run fine. On another,
they do not.
The scripts do not call the other scripts even though the scripts are
the same. I used the set -x option to try to debug it, and discovered
that the scripts were not being called.
This is from the log file of the server that the scripts fail on:
+ Logger StartLogging twtm02_rman_cold_backup_tape.ksh twtm02
+ Logger printStartOfJobMessage twtm02_rman_cold_backup_tape.ksh
+ [ 5 -lt ...RE: Terminate a python script from linux shell / bash script
>>That's not how it works. If you kill one running python script it will no=
>>effect other python scripts. Each script has its own interpreter process
>GB> So=2C is there a way from the Linux shell or a bash script to terminat=
>GB> just one specific Python script ?=20
>>So just kill it.
Yes I've seen that each python script calls its own instance of Python. But=
how to know which is the good one in bash ? Is there a command that gets t=
he parameters of process=2C so I could use grep to select the one containin=
g the name of...expect script with shell script
I am using expect script in shell script.
I want one value from expect script.
how can i get the value from expect script and use it in shell script?
On Thu, 4 Aug 2005, email@example.com wrote:
> I am using expect script in shell script.
> I want one value from expect script.
> how can i get the value from expect script and use it in shell script?
Have the expect script send the output to stdout (see [puts stdout ...]).
In your shell script write:
In article <Pine.OSX.firstname.lastname@example.org>,
Michael A. Cleverly <email@example.com> wrote:
>On Thu, 4 Aug 2005, firstname.lastname@example.org wrote:
>> I am using expect script in shell script.
>> I want one value from expect script.
>> how can i get the value from expect script and use it in shell script?
>Have the expect script send the output to stdout (see [puts stdout ...]).
>In your shell script write:
.... which has nothing to do with Expect, of course. That is,
Michael's advice is perfectly correct; from my own experience,
though, I know that many people misunderstand the relation be-
tween Expect and Tcl, and I want to take this opportunity to
mention that his remark applies equally well to Expect or to
vanilla Tcl. In that sense, the
technique is not specific...RE: Terminate a python script from linux shell / bash script #2
Thank you guys for your help. My problem is that I project to use this comm=
and to terminate a script when uninstalling the software=2C so I can't stor=
e the PID. This command will be integrated in the spec file of the RPM pack=
age. Here's the script I'll use=2C it may help someone else:
# PYTHON SCRIPT PROCESS KILLER by GBO v0.1
# This script will look for all the lines containing $SOFTWARENAME in the p=
rocess list=2C and close them
SOFTWARENAME=3D'yoursoftware' #This is case insensitive
JOBPRESENT=3D$(ps -ef | grep -i $SOFTWARENAME | grep -v grep)
echo $J...Copy files using filenames from text files with shell script or bash script
How can I do this????
I have the file "lista.txt", and this file have the next information:
This files exist in the same directory that "list.txt", I would like to
copy this files to other directory
Using Windows the batch file would be like this: for /f "tokens=*" %i
in (list.txt) do copy "%i" destdir\
How can I do something like that in REDHAT??
On Sun, 19 Nov 2006 16:01:42 -0800, email@example.com rearranged
some electrons to form:
> How can I do this????
David M (dmacchiarolo)
sled351 Linux 2.4.18-14 has been up 3 days 15:04
for f in `cat lisa.txt`; do cp $f /dst/dir; done
On Nov 19, 6:43 pm, David M <NOS...@nospam.com> wrote:
> On Sun, 19 Nov 2006 16:01:42 -0800, altariamx2...@gmail.com rearranged
> some electrons to form:
> > How can I do this????http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
> David M (dmacchiarolo)http://home.triad.rr.com/redsled
> T/S 53
> sled351 Linux 2.4.18-14 has been up 3 days 15:04
C.J. Steele wrote:
> for f in `cat lisa.txt`; do cp $f /dst/dir; done
Not a good way if you have filenames with whitespaces in lista.txt.
Jiri Slaby kirjoitti:
> C.J. Steele wrote:
> > for f in `cat lisa.txt`; do cp $f /dst/dir; done
> N...shell scripting with bash
I'm quite new to unix/linux OSs.
I've got a task which is to look through a file for a line containing
a specific word and erase it if it exists. After that, I need to
insert a new line.
Can this be peformed by a *.sh file using bash?
If it not to much trouble, please provide such a script and links to a
good web site on such a subject.
firstname.lastname@example.org (Jonathan Taub) writes:
> Hello there.
> I'm quite new to unix/linux OSs.
> I've got a task which is to look through a file for a line containing
> a specific word and erase it if it exist...unix shell script
I am in need of a shell script which will cat all the audit files into
one log and then email.
"muddu" <email@example.com> wrote in message
> Hi all,
> I am in need of a shell script which will cat all the audit files into
> one log and then email.
"cat *.aud" will merge all files together. You can redirect it to a file
Thank you very much for your hint.
Bob Jones wrote:
> "muddu" <firstname.lastname@example.org> wrote in message
> > Hi all,
> > I am in need of a shell script which will cat all the audit files into
> > one log and then email.
> "cat *.aud" will merge all files together. You can redirect it to a file
> and/or email.
...Converting unix shell scripts to dos batch files
Anyone know of a tool or site that converts unix (bourne) shell scripts
to dos batch files (for NT/2000/XP)?
Ted Davis wrote:
> On Wed, 09 Jul 2003 16:11:18 -0400, Nikolaos Giannopoulos
> <email@example.com> wrote:
> When you find one, it will probably be in the same place as a
> translator for Malarian into Klingon.
> The languages are as different as Hebrew and English - best to just
> rewrite using native concepts since too many of the concepts and
> structures don't translate.
Really? The syntax may be...Unix Shell Script to convert between Big and Little Endian #4
Can anyone post a shell script that can convert a binary file from
little to big Endian or vice versa? Or is there one that can do this? I
can use the 'dd' command line except that always flips every 2 bytes so
a 4 byte number wouldn't be converted right.
I'm running a PHP script from a shell (bash, ...) - not from a web
So I use a script of the form:
and then I can run the script directly, rather than:
[user]# php -f script_name
Running the script this way changes the current directory to that of
I don't want this behaviour - I want the current directory to be from
where I run the script, so I can write the PHP code to work on 'local'
files (./*) - just like it should for CLI SAPI interface.
I can't use the -C option (PHP throws an error) like:
#!/usr/bin/php -q -C
Anyone know how to do what I want ?
System: Linux Fedora Core 1, PHP Version 4.3.8
> I don't want this behaviour - I want the current directory to be from
> where I run the script, so I can write the PHP code to work on 'local'
> files (./*) - just like it should for CLI SAPI interface.
Can't you simply give your script a parameter of the needed working
directory and then
use the chdir()-command to change the script's current directory?
...shell script: how to get *directory* of currently script?
I'm writing the a shell script which needs to get at a file in the same
folder as the script itself. The variables $0 gives you the current
script name (and the path to the script, if it is not being run for the
directory where the script is), which is helpful, but I need an elegant
way to make $0 into just the path to the script, not including the
script name itself. Any ideas?
"Alex Hunsley" <firstname.lastname@example.org> a �crit dans le message de
> I'm writing the a shell script which needs to g...Passing a variable from a Perl script to a shell script
I want to submit a form which has only one password field (Perl) and
the password should be submitted to a shell script. In the shell
script, I want to process the pssword and use some crypting commands
to Encrypt it.
I do not know how I can process the password from Perl to shell and
how to obget it in Shell
Any help is appreciated. Thanks!
In article <email@example.com>,
firstname.lastname@example.org (Ash) wrote:
> I want to submit a form which has only one password field (Perl) and
> the password should be submitted to a shell script. In the shell
...passing arguments to a shell script from a perl script
Is there anyway can I pass arguments to a shell (bash) script from
within a perl script and execute the shell script.
The reason I want to call a shell script is that I want to export
environmental variables. Since, we can't do it from a perl script, I
wanted to write the environmental variables in a shell script and
Can anyone let me know how can I do this in perl.
You can actually actually indeed do this from within a perl script.
You can also set environment variables from within perl. I'm sure
you will get a few responses on this one as ther...shell script with arguments within perl script
Hi! I wanted to run the system command with in Perl script to execute
shell script with argument. I need to know the correct syntax for the
system("shellscript.sh" <arg1>, <arg2> <arg3>);
I am getting syntax error. If i get rid of the arg1-3 then the shell
script runs just fine.
Posted via http://www.ruby-forum.com/.
On May 3, 2007, at 5:22 AM, jay wrote:
> Hi! I wanted to run the system command with in Perl script to execute
> shell script with argument. I need to know the correct syntax for the
> argumen...How can I run php scripts from a shell script?
Newbie about this stuff.
I want to run some php scripts from a shell script(bash?)
the php script i want to run is this:
and it's path is this:
1. How would I creat the shell script?
2. How would I execute it?
I have already tried ot figure it out with no success.
I have php 4.2.2
email@example.com spilled the following:
> Newbie about this stuff.
> I want to run some php scripts from a shell script(bash?)
> the php script i want to run is this:
> and it&...Shell script?
I have a large number of JPGs that were taken by rotating
the camera to upright format, and they all need rotating.
I have been using the gimp to do this, and it's a laborious
process. Load it into gimp, answer OK to "Rotate image?",
save it, reject the suggested xcf format, go to Export
to *.jpg, and confirm that.
Is it possible to do all that with a shell script under
Linux? If so, how?
On 2015-07-16, Dieter Britz <firstname.lastname@example.org> wrote:
> I have a large number of JPGs that were taken by rotating
> the camera to upright f...Unix Shell script and MySql
I want to write a unix shell script that interacts with a mysql
database. Is it possible? If so , How?????
> I want to write a unix shell script that interacts with a mysql
> database. Is it possible? If so , How?????
by calling the external program mysql
It is a commandline program to query a mysql db.
see 'man mysql' for detailed info.
mysql -uUSERNAME -pPASSWORD -e 'show databases'
jzz <email@example.com> wrote:
> I want to write a unix shell script that interacts with a mysql
> database. Is it possible? If so , How?????
MyS...UNIX shell script question
I try with a UNIX shell script to do some actions in each subdirectories.
Here is my script:
for userdir in $DIRS
#do some action on each dir
My problem is that I have directories with whitespaces in their name. For
example I have the following directories:
I get the following output:
I would expect the following:
In the variable DIRS I get the fol...How to convert this script to AIX shell?
I use the following command to place Oracle export in Solaris with
echo|exp file=>(gzip|split -b 2047m - exp.dmp.) userid=system/passwd
It performs a full database export and compress the export file on the
fly. When the first compressed file is larger than 2G, it will create
a second compressed export file, and so on. So for the large database,
the export files look like:
It was so convenient to use. However, I could not seem to be able to
run it with KSH in AIX. In AIX, it doesn't recognize file=>
Has anyone come across the similar iss...Unix shell script
I understand oracle runs on windows evnviroment, and we have differet
enviroment from windows os to interact with oracle, like toad, sql
plus and etc.
I am observing that many people are talking oracle with unix shell
script. I really dont understand what we will do oracle with unix
Can someone who involed on this oracle and unix shell script
environment throw some relationship between this two.
Thank you very much
"Cooltami" <firstname.lastname@example.org> writes:
> Can someone who involed on this oracle and unix shell script
> environment ...