Print script is completed successfully or not | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Print script is completed successfully or not

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-28-2013
kiran425 kiran425 is offline
Registered User
 
Join Date: Aug 2013
Last Activity: 30 August 2013, 11:58 PM EDT
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Print script is completed successfully or not

Hai guys

I am running three shellscripts through Gtk2-Perl(GUI)
these are the scripts

Drccalibrescript1 script2 script3

Gtk2-Perl(GUI)

drccalibre -> If I run this script through Gtk2-Perl(GUI)

these are results of the drccalibrescript1 . summary/.results
I have to find size of those then size >0k r bytes
print -> drc calibre run successfully
else
print -> error

and after that change page, that is control will go for next script automatically in Gtk2-Perl(GUI).

please write code for that

Thanks&Regards
kiran
Sponsored Links
    #2  
Old 09-04-2013
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
 
Join Date: Nov 2007
Last Activity: 27 July 2014, 7:55 PM EDT
Location: New Zealand
Posts: 1,040
Thanks: 20
Thanked 24 Times in 23 Posts
Your question is a bit vague but I'd suggest you try something of the form:

Code:
# if [ -s "<your output file>" ] ; then echo "drc calibre run successfully" ; else echo "error" ; fi

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Did my script execute successfully ? mohtashims Shell Programming and Scripting 7 04-23-2013 07:10 AM
how to print the percentage of task completed on the same line rakeshkumar Shell Programming and Scripting 5 05-30-2012 09:41 AM
script has been executed successfully or not?? bobby1015 Shell Programming and Scripting 2 07-21-2011 01:58 PM
How to ensure mksysb backup completed successfully. falgun6666 AIX 1 08-03-2010 07:18 AM
Script working successfully only when executed twice meva UNIX for Advanced & Expert Users 3 05-05-2010 03:59 AM



All times are GMT -4. The time now is 02:30 PM.