The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Calling shell functions from another shell script jisha Shell Programming and Scripting 6 04-05-2008 05:29 PM
Calling Shell Script onlyroshni Shell Programming and Scripting 1 10-22-2007 08:29 PM
calling sql file from shell script dummy_needhelp Shell Programming and Scripting 6 09-30-2007 11:55 PM
Problem with Calling sql file from shell script sskc Shell Programming and Scripting 1 05-03-2007 06:20 PM
Calling shell script ? Ravi_Kandula Shell Programming and Scripting 1 10-07-2002 10:30 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-07-2008
elavv elavv is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 5
calling a cgi file from shell script????

Hi..

Is it possible to call a cgi program which is used to display a pop up message in the else part...On executing the script it directly prints the source code of the pop up screen..

Please if you have any idea,share with us.Thanks.

#start

success250=`grep -c failure /proj/mats/www/mats/tmp/data_cpars_job.out`

mail_list="elavv2003@gmail.com"

if [ "$success250" -eq 1 ]
then
echo "Hi success"

else

echo "Hi failure"

perl cpars.cgi

fi

#End
  #2 (permalink)  
Old 08-07-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Maybe you can change the cgi script to show its output in plain text with an option (or maybe if some of the standard CGI variables are unset, indicating that it is being run from the command line); or else, pipe the output to something which strips out the HTML tags, such as a simple sed script.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0