Can anyone provide the command how to send a text file as a attachment with a proper subject using mailx or sendmail command in UNIX.
Note: I am using HP-UX OS. The file send should be the attachment, not in the message body. In addition, I need to put in the mail subject as well.
Can anyone provide the command how to send a text file as a attachment with a proper subject using mailx or sendmail command in UNIX.
Note: I am using HP-UX OS. The file send should be the attachment, not in the message body. In addition, I need to put in the mail subject as well.
Thanks.
Hi,
I am facing some problem while executing the process thru cron. My execution scripts (KORN shell) will be something as below:
echo U$(tput kf9)$(tput kf9)|/prog/bin/prog1.exe M A 1>/prog/log/cron.log
In my cron.log, I can see that the 1st input parameters is not passing in to the...
Hi,
Can anyone tell me why I get the different exit status for the following script execution:
Script A
----------
ksh -c "/proj/prog.exe " 2>>/tmp/run.log 1>/tmp/error.log << !
^M
!
ret_code=$?
Script B
--------
ksh -c "/proj/prog.exe " << !
^M
!
ret_code=$?
Why am I getting...
Hi,
I am just wonder what is a proper way to pass in a variable which content control character e.g ^M from one script to another script.
e.g
Script A
---------
var_a='YYY^M'
procA(var_a)
Script B
--------
function procA
{
....
Do while...
inpt1=$1
echo $inpt
....
}
However, in...
Hi,
I have a 4GL program which expecting 2 input screens.
The 1st screen is expecting:
1. date1
2. date2
The 2nd screen is expecting:
1. input array of a/c no and press F8 to process
or
2. Leave the entry blank and press F8 to process.
I have a unix scripts which calling this 4GL program by...
I have an additional queries:
What would be the argument values to be pass from the unix script to the 4gl program if the 4gl program require input array?
e.g
ksh -c "echo <input array><F9 ctrl-key>|/proj/prog.exe" <<^M !
The possible input array to be pass in are as below:
1. Input array...
Thank you for your help, it is working perfectly fine.
I have another similar issue but the informix-4GL was written in a different way as below:
Program id: onkey.4gh
....
....
on key (F9) let g_onkey = 9
Program id: hotkeys.h
#define F9.key 9
.....
Program id: Prog.4gl
#include hotkeys.h...
Let me explain a bit of the backgroud before I post my question:
Inside the informix 4gl program
OPTIONS INPUT WRAP
OPTIONS INSERT KEY F2
OPTIONS NEXT KEY F3
OPTIONS PREVIOUS KEY F4
OPTIONS DELETE KEY F8
OPTIONS ACCEPT KEY F9
.....
...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.