Best is to use another variable name instead of PATH.PATH is a system variable and may cause issues when using otherway.
And you need not to give "&" for background process.You may call the main script in background as well
thanks aashish sharma,
I have rename PATH todifferent variable name, now its working fine.
But how to call the mail script in background ?
---------- Post updated at 08:24 AM ---------- Previous update was at 08:20 AM ----------
Quote:
Originally Posted by methyl
Not sure what's a file and what's a directory in your script and whether the string "yahoo" is the full name or part of the name of something.
What is the output from this enquiry:
Does the path to stop.sh ever change?
here's the Perl code snippet...
how can i call my C executable 'porter-stemmer' and pass it $1 as
an argument? Thanks for the help!
# Read through the original topic set, and modify based on the current
# pre-processing options
while (<TOPIC_ORIG>)
{
# Run pre-processing over only the... (3 Replies)
Hi all,
I am calling one shell script from other ...as follow
---calling_proc---code
line_no=10
proc_name='test'
echo "set verify off feedback off pagesize 0
select count(*) from tp_mpolicy2 " | sqlplus -s/@CMKT | read cnt
if ; then
export $line_no $proc_name
global_proc... (2 Replies)
I have created abc.sh file which will set the environment variables (UNIX env variables as well as ORACLE required variables like ORACLE_SID,ORACLE_HOME etc) and then calls a function file which checks for starts some logs and then it will try to execute the .sql file. The .sh, function file are as... (1 Reply)
Hello,
we can call the script inside another script.
like
method 1) content of test.sh
########
. test2.sh
#######
method 2) content of test.sh
########
test2.sh
#######
What is the difference here in both samples calling test2.sh?? i mean calling with ". " and calling... (1 Reply)
Hi ,
Here is my piece of code--
main();
sub main
{
$result = GetOptions ("LogDir=s" => \$LogDir,
"Summary" => \$Summary,
"Indiviual=s" => \$Individual ,
"Diagnostics=s" => \$Diagnostics,
... (1 Reply)
Hi all,
I am having a script ScriptA which is calling a script ScriptB in the same server and copying files to second server and have to execute one script ScriptC in the second server. THis First script ScriptA is the main script and i have to execute this process continously.
for Keeping... (2 Replies)
Hi ,
I have moduled my scripts in three scripts .
From First script i am calling second and from second i am calling third for some check .
Problem is with the third script call.
---In second script
EXP ='test.\abc.\Server.*abc.xml.*'
pid=$($HOME/bin/checkpid $EXP)
--Third... (2 Replies)
I have an expect script called remote that I want to call from inside my expect script called sudoers.push, here is the code that is causing me issues:
set REMOTE "/root/scripts/remote"
...
log_user 1
send_user "Executing remote script as $user...\n"
send_user "Command to execute is: $REMOTE... (1 Reply)
Hi,
I am calling a script log.sh from output.sh.
Log.sh has below pice of code:
IFILE=/home/home1/Report1.csv
if awk -F, '$6==0 && $7==0{exit 1}' ${IFILE}
then
awk -F, '
BEGIN{
c=split("1,6,2,3,4,5,6", col)
print "To: abc@gmail.com"
print "Subject: Error... (2 Replies)