Search Results

Search: Posts Made By: shrima.pratima
14,046
Posted By shrima.pratima
How to schedule a script in crontab.
Hi,

My script is in $home/bin/sample.sh.
I want to run the script for 3times a day,
first execution will be at 08:00 am.
second execution will be at 16:00 pm
third will be at 23:59 pm.
...
11,921
Posted By shrima.pratima
I have to append the new data received from logfile to csvfile
Actually my logfile contain a file,so using awk command I am picking the required data and storing in csvfile.
Logfile is not the same as csvfile.
csvfile contain some fields that are reuired.
...
11,921
Posted By shrima.pratima
I want to append data to same .csv file.
I have a script which has to be scheduled to run 3 times a day.
My script picks the required fields from logfile and stores the data in a.csv file.
Sample data.

my logfile contain:
...
4,745
Posted By shrima.pratima
actually sample of data look like: ISA~00~ ...
actually sample of data look like:

ISA~00~ ~00~ ~ZZ~ABCDE ~ZZ~AAAAA ~100902~0647~U~00200~000003479~0~P~>
GS~SH~ABCDE~0185A~100902~0647~2173~X~002002XXX...
4,745
Posted By shrima.pratima
nawk didnt work in my script.
Hi all,

Thanks for your reply.

I entered nawk instead of awk but didnt work.
error is: nawk not found.
My OS HP-UX.
my script is not able read the file and pick up the required fields when...
4,745
Posted By shrima.pratima
problem with awk command in script.
#!/bin/sh
date=`date +%y%m%d -d"1 day ago"`
inbound_dir=/vis/logfiles/to_solmis
cp `grep -il ST~856~ $inbound_dir/*$date*` /vis/sumit/in_ASN/
echo...
2,496
Posted By shrima.pratima
Problem with awk,not able print the file that is greater than 3000 bytes.
My Script:
#!/bin/sh

date=`date +%y%m%d -d"1 day ago"`
in_dir=/vis/logfiles/to_solmis
cp `grep -il ST~856~ $inbound_dir/*$date*` /vis/sumit/in_ASN/

for i in...
Showing results 1 to 7 of 7

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