Search Results

Search: Posts Made By: sangharsh
Forum: HP-UX 02-03-2010
3,386
Posted By sangharsh
Sending email to multiple IDs
Hi,

I am trying to send an email to multiple IDs from Unix script. I have given the EmailIds in a file and trying to use the file as input in the script.

> cat Email
EmailID = "abc@xyz.com...
Forum: HP-UX 02-03-2010
12,056
Posted By sangharsh
Thanks for your suggestions...But none of these...
Thanks for your suggestions...But none of these worked..In all these cases, the file content is coming as the message body...may be soem version difference...Anyways, I have to go ahead with it...So,...
Forum: HP-UX 02-02-2010
12,056
Posted By sangharsh
Thanks. But if I remove "<" , then where can I...
Thanks. But if I remove "<" , then where can I mention the attachment file name?
I tried "cat Testfile.txt | mailx -s "Subject" emailID@xyz.com" as well as "uuencode Testfile.txt | mailx -s...
Forum: HP-UX 02-02-2010
12,056
Posted By sangharsh
Sending Unix files as attachments in an email
Hi,

I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt

Instead of attaching the file Testfile.txt, it is writing...
Forum: UNIX and Linux Applications 01-26-2010
2,352
Posted By sangharsh
ok. It worked.. I tried the following commad: ...
ok. It worked.. I tried the following commad:

if [ $(wc -w < INVX102C.sf) -eq 0 ]; then
echo "INVX102C empty"
rm INVX102C.sf
else
echo "File not empty"
fi

It gave me File empty...
Forum: UNIX and Linux Applications 01-26-2010
2,352
Posted By sangharsh
How to delete files with no records?
Hi,

I have a file whose size is not zero but it has no records and another which has records. I want to delete all the files that have no records in it (even if size > 0). How do I do it?
I have...
2,634
Posted By sangharsh
Pass variables to a Unix script from a file
Hi,

I am running a Java program from a unix script. I need to pass a variable to the Java code from a file. Here are teh details:

cat Parm <<this is my Parameter file>>
queuename=queue1
...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 03:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy