Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Print script is completed successfully or not

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 08-28-2013   -   Original Discussion by kiran425
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


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
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

Sponsored Links
Old Unix and Linux 09-04-2013   -   Original Discussion by kiran425
Smiling Dragon's Unix or Linux Image
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
Join Date: Nov 2007
Last Activity: 27 July 2017, 4:23 PM EDT
Location: New Zealand
Posts: 1,060
Thanks: 25
Thanked 29 Times in 28 Posts
Your question is a bit vague but I'd suggest you try something of the form:

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

Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 08:10 AM
how to print the percentage of task completed on the same line rakeshkumar Shell Programming and Scripting 5 05-30-2012 10:41 AM
script has been executed successfully or not?? bobby1015 Shell Programming and Scripting 2 07-21-2011 02:58 PM
How to ensure mksysb backup completed successfully. falgun6666 AIX 1 08-03-2010 08:18 AM
Script working successfully only when executed twice meva UNIX for Advanced & Expert Users 3 05-05-2010 04:59 AM

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