03-11-2010
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
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello, I am a UNIX newbie and this is my first posting.
I need to create a batch command file to ftp from Sun/Solaris to AS/400.
Here is an example file:
ftp -d -i -n -v 172.28.16.22
pwd
ls
binary
quit
This is the result of executing the command file:
Connected to... (10 Replies)
Discussion started by: pietro
10 Replies
2. Shell Programming and Scripting
Hi All
I have a need due time constraint to issue the mail command in background. I have a script that sends a message to a mail address as follows :-
echo "$MLINE" | mail -s "$HOST - $TEXT" name@co.com &
The script runs frequently and I check to see if the script is active and if it is , it... (5 Replies)
Discussion started by: jhansrod
5 Replies
3. Shell Programming and Scripting
Hi,
how do we change user in a shell script- batch mode.
Thanks,
Rajesh (3 Replies)
Discussion started by: Rajesh Gohad
3 Replies
4. UNIX for Dummies Questions & Answers
<! pad_meth: <! program = "/usr/lib/drivers/pse/x29d -p"
how should i program it in oder to display this:
<! pad_meth:
<! program = "/usr/lib/drivers/pse/x29d -p"
;) (1 Reply)
Discussion started by: rita1985
1 Replies
5. Windows & DOS: Issues & Discussions
I have a .bat file on windows, which converts a .xls file into .csv file and using a ksh script i would usually FTP this .csv file...
Now i want to trigger this .bat form my ksh script.
can i use rsh command in my FTP to run .bat file on windows and then ftp the generated .csv file...is... (19 Replies)
Discussion started by: bhagya2340
19 Replies
6. Shell Programming and Scripting
Hi every one,
i have to dot pc files. One have main function but one dont have.I have to call dot pc file using system () cmd.File is being call have main function.Please let me know how i can call .pc file with two arguments from other dot pc file.I want some thing like
sprintf(buf,... (1 Reply)
Discussion started by: goraya430
1 Replies
7. Programming
Hi every one,
i have to dot pc files. One have main function but one dont have.I have to call dot pc file using system () cmd.File is being call have main function.Please let me know how i can call .pc file with two arguments from other dot pc file.I want some thing like sprintf(buf, "ss_xxx.pc... (4 Replies)
Discussion started by: goraya430
4 Replies
8. Shell Programming and Scripting
Hii
I wanna call a batch file from a make file. Doesn't work , what is the procedure to do this.? Any idea
thanks:eek: (2 Replies)
Discussion started by: krishnampkkm
2 Replies
9. UNIX for Advanced & Expert Users
I need to run a test SFTP command in a batch mode and what I need to prompt my password after the sftp userid@hostname. I do not have have an ssh key exchanged between my server and the external server. I only have access to it as an sftp server. I must enter my password in my script. How do i... (2 Replies)
Discussion started by: mrn6430
2 Replies
10. UNIX for Beginners Questions & Answers
I am trying to use a batch file to automatically execute a bash script with no luck this far.
The batch script looks like this:
C:\Cygwin64\bin\bash test.sh
I have also tried this:
C:\Cygwin64\bin\bash "C:\Cygwin64\bin\test.sh"
Needless to say that the windows box has Cygwin... (7 Replies)
Discussion started by: Xterra
7 Replies