Search Results

Search: Posts Made By: balaji.rengaraj
3,344
Posted By balaji.rengaraj
A portion of script here mail in MAIL_DRAFT file...
A portion of script here mail in MAIL_DRAFT file will send by replace the AMOUNT and DATE value:

CURRENTDATE=`date +%d" "%B" "%Y`
awk '{if ($0~/\$000.00/) {printf...
36,050
Posted By balaji.rengaraj
this cmd can do,put it into the loop for n files ...
this cmd can do,put it into the loop for n files

mv a.csv a.xls
3,344
Posted By balaji.rengaraj
Unix mail with blank line on variable
I am testing a ksh script for email.
In the subject/content of the mail there is some dynamic variables like date and charges.
However these variables occupied the entire line erase other in...
11
4,546
Posted By balaji.rengaraj
:b: Hi Its working now, `ls -lrt...
:b:

Hi Its working now,

`ls -lrt $RPT_FOLDER |grep "invoice"|awk '{print $9}'|xargs rm -f $RPT_FOLDER/`

In the above cmd “print $9” gives only the file name i.e invoice and "rm -f" cmd...
11
4,546
Posted By balaji.rengaraj
Have modified ($lc) and still its not working. ...
Have modified ($lc) and still its not working.

Simple ques:
why the script cant remove the file
same time how can it read that file.

Note:The crontab runs in the same user where the files...
11
4,546
Posted By balaji.rengaraj
OK, but how come it correctly count the files...
OK, but how come it correctly count the files from that dir
and writes in the log file.
(Have did a double check)

Thank you,
11
4,546
Posted By balaji.rengaraj
crontab
Simple script that removed some files successfully as script sh -x
But not working in crontab, however it fires and writes log files even some count of the files
I set all env and user interaction...
Showing results 1 to 7 of 7

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