Search Results

Search: Posts Made By: jmathew99
1,429
Posted By jmathew99
Thanks - it worked!!
Thanks to all,

All the options works fine.
1,429
Posted By jmathew99
Need help on If statement for comparison
Hi,
We are using AIX and while using KSH Unix script, we are reading data in a file and then using the if statement for comparison. The code with if statement is as follows;


cat $FILETMP |...
6,677
Posted By jmathew99
Delete all files in a directory which starts with "SWT*"
Hi,

Can you please let me know the code after correction.
6,677
Posted By jmathew99
Delete all files in a directory which starts with "XXX*"
Hi,

How can I delete all files in a directory that starts with the name "STW*" through a shell script ksh. Can I use the mtime in this case. Will the following command work, or let me know how I...
12,579
Posted By jmathew99
Hi, I checked the man pages for mailx and I...
Hi,

I checked the man pages for mailx and I do not find -b in the flags section. However I found the following. Please let me know if this can be used and how.

Mail Editor Subcommands for the...
12,579
Posted By jmathew99
Bcc in mailx command in Unix
Hi,

At present we have been using the mailx command which is working perfectly and the command is as follows;
mailx -s "$DESCR1" -c $DLIST_CC -r $REPLY $DLIST

We would like to add a Blind...
6,400
Posted By jmathew99
Hi, How can we create a lpstat for a...
Hi,

How can we create a lpstat for a printer. Is there a way of creating it so that we can see the status as mention earlier. Please help.
6,400
Posted By jmathew99
Hi, When i give the command at the command...
Hi,

When i give the command at the command line it give the output of the status of the printer perfectly. The problem is while I include this in this script then it is giving the problem. Hope I...
6,400
Posted By jmathew99
Hi, The line on the script is as follows...
Hi,

The line on the script is as follows and what we require is to send the output of the command to a file;

lpstat -prn001_hp4000n >> $PRINSTAT

But the system was giving the error as I...
6,400
Posted By jmathew99
Printer status script giving error
Hi,

We check the printer status at the command line by giving the following command and the system gives an output;

lpstat -prn001_hp4000n

When I give the same command in a UNIX script...
9,634
Posted By jmathew99
Need to give color to text in mail sent from unix
Hi,

Pravin/Gaurav,

I am able to send a mail successfully from unix with the following script;


(echo "From: $REPLY"
echo "To: $DLIST"
echo "Cc: $DLIST_CC"
echo "subject: $DESCR1"...
26,044
Posted By jmathew99
I am still confused and not able to get it
Hi,

I am not clear and confused. Can someone help me with this requirement.
26,044
Posted By jmathew99
Hi, I included the following; ...
Hi,

I included the following;

NORMAL=`echo "\033[m"`
FGRED=`echo "\033[31m"`

(echo "From: $REPLY"
echo "To: $DLIST"
echo "Cc: $DLIST_CC"
echo "subject: $DESCR1"
echo "$DESCR2"
echo ""...
26,044
Posted By jmathew99
Add color to part of the text in a mail sent from unix script
Hi,

We are using KSH.

I was able to write a script where a mail is sent to the concerned persons and this is working perfectly file. I need to give a different color to a part of the data in...
9,634
Posted By jmathew99
Thanks - it worked!!
Hi,

Thanks Pravin and Gaurav, the code given below worked fine. Thanks a lot for this help.
9,634
Posted By jmathew99
Not able to attach text in body of email while sending mail with attachment
Hi,

We have been trying to send mail with attachment and it is going fine, but when we try to attach a text to the body of the email, we find that the mail is going fine with the body text but...
3,403
Posted By jmathew99
Getting date output based on time zone
Hi,

We have a server in US and hence while the command "date" is given it gives the output in EDT. If I want the date output in MET, how can I get it. Please let me know how I could do it in the...
4,698
Posted By jmathew99
Command to view full data "export MAESTRO_OUTPUT_STYLE=LONG"
Hi,

Always when I login to Unix, I need to give the following command to view the data properly;

export MAESTRO_OUTPUT_STYLE=LONG

The reason is that by default the settings export...
12,786
Posted By jmathew99
command is not working
Hi asalman,

I tried the following command;

df | grep "[89][0-99]%" | awk '{ print $1,"mounted on",$6,"has exceeded 80%"}' | mail -s "partitions more than 80%" user

There is no mail in my...
12,786
Posted By jmathew99
Sorry, I could not understand
Hi Kurumi,

Sorry, I could not understand what was written and where in the code I could fit that. Can you please explain. Please bear with me as I am a beginner. Thanks.
12,786
Posted By jmathew99
Check space of directories and send email if it has reached threshold limit
Hi,

I need help in writing unix script for checking space of some directories on the system and also send an email when it reaches the threshold limit.

I have written the followng code;

...
Showing results 1 to 21 of 21

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