|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|