Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Search Forums:



Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-11-2010
Registered User
 

Join Date: Apr 2009
Location: Chennai
Posts: 113
Thanks: 1
Thanked 0 Times in 0 Posts
How to call a command in a batch file?

Hi,

I would like to get the output of below command emailed to me in a windows2003 server.

"bpimagelist -hoursago 24 -U"

I will be using "blat" to email the output of this command.But not sure how the above command is called for in a batch file when executed.

Would appreciate if anybody can put down the syntax.

Thnaks
HG

---------- Post updated at 09:02 AM ---------- Previous update was at 08:41 AM ----------

Hi,

I tried this:

blat "D:\Program Files\VERITAS\NetBackup\bin\display_jobs.bat" -s test -to <emailaddress>
But receiving the text above and not the output of the text when executed.

Guys, I need to email the output of "D:\Program Files\VERITAS\NetBackup\bin\display_jobs.bat".

HG
Sponsored Links
    #2  
Old 03-12-2010
pludi's Avatar
pludi pludi is offline Forum Staff  
Cat herder
 

Join Date: Dec 2008
Location: Vienna, Austria, Earth
Posts: 5,486
Thanks: 38
Thanked 324 Times in 301 Posts
You'll have to save the output of the batch file to a temporary file using redirection, and then attach or include it in your mail. However, I've never heard of the blat command, so you'll have to look up the syntax for that yourself.
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
Can rsh command be used to call a bat file bhagya2340 Windows & DOS: Issues & Discussions 19 02-11-2009 10:34 AM
Add password to batch command? Killalot57 Windows & DOS: Issues & Discussions 8 12-20-2008 02:36 AM
batch file using sed command in msdos rita1985 UNIX for Dummies Questions & Answers 1 01-15-2008 01:19 AM
Using Batch command jhansrod Shell Programming and Scripting 5 06-10-2005 12:50 PM
UNIX Batch FTP Command file pietro UNIX for Dummies Questions & Answers 10 08-13-2002 05:44 PM



All times are GMT -4. The time now is 04:25 AM.