10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: Vivekit82
2 Replies
2. Programming
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)
Discussion started by: brettski
1 Replies
3. Shell Programming and Scripting
Hi I need to call a function written in a cpp file with arguments inside the shell script..Can anyone help me how to do this:( (1 Reply)
Discussion started by: rkrish
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: amrishn
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: rohithji
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: namishtiwari
1 Replies
7. Shell Programming and Scripting
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)
Discussion started by: balareddy
1 Replies
8. Shell Programming and Scripting
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)
Discussion started by: sskc
1 Replies
9. Shell Programming and Scripting
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)
Discussion started by: dhananjaysk
2 Replies
10. Shell Programming and Scripting
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)
Discussion started by: mark_nsx
3 Replies