Search Results

Search: Posts Made By: robertbrown624
26,262
Posted By robertbrown624
Autosys file watcher
Hi friends,

Instead of creating a script autosys 11.3 has a feature for filewatcher.
Can anyone please share a link where ican create a file watcher job (more like manual).
i need to create a...
1,166
Posted By robertbrown624
thanks a ton i tried splitting let me check if...
thanks a ton
i tried splitting let me check if i get the same result while joining them !

---------- Post updated at 06:50 PM ---------- Previous update was at 06:35 PM ----------

Hi When i...
1,166
Posted By robertbrown624
Splitting the file
Hi Friends,
We have a process where we use 11 different files

filename_1
filename_2 and so on to filename11
now we have only 1 file filename_1
if we split the file to 11 files based on KB and...
10,482
Posted By robertbrown624
i give up , unable to solve BTW # 5 minutes...
i give up ,
unable to solve
BTW # 5 minutes is a typo error
Getting the same error

+ sleep 120
+ (( timer1=0 2 ))
filewatcher.ksh[16]: timer1=0 2 : syntax error
9,093
Posted By robertbrown624
Hi, Tried debugging but could not solve $ ....
Hi,
Tried debugging but could not solve
$ . ./test1.ksh .
+ . ./test1.ksh .
+ awk -F. {f[xx++]=$0}p!=$3{a[x++]=$3;p=$3}
END
{
while(j++!=S){x--;b[j]=b[j]?b"\n"a[x]:a[x]
}
for(i=j-1;i>=1;--i)...
10,482
Posted By robertbrown624
Actually the line check interval is not...
Actually the line
check interval is not resolving
check_interval=120 # check every 5 minutes
(( check_interval_minutes=${check_interval}/60 ))
tried debugging the scrpt using ksh -vx
10,482
Posted By robertbrown624
Thanks a lot! added Done at the end executed...
Thanks a lot!
added Done at the end
executed the script in this fashion
. ./script.ksh .
and got the below error
$ . ./filewatcher.ksh .
ksh: timer1=0 2 : syntax error
please advise!
10,482
Posted By robertbrown624
Filewatcher job
Hi Friends
iam using a filewatcher job which checks the path in intervals
below is the script
#!/bin/ksh
fileflag=0
timer1=0
check_interval=120 # check every 2 minutes
((...
9,093
Posted By robertbrown624
Hi, Currently i wrote the script in this way...
Hi,
Currently i wrote the script in this way (im a newbie)
#!/bin/ksh
awk -F'.' '{f[xx++]=$0}p!=$3{a[x++]=$3;p=$3}'
END
{
while(j++!=S){x--;b[j]=b[j]?b"\n"a[x]:a[x]
}
for(i=j-1;i>=1;--i)...
9,093
Posted By robertbrown624
Hi, Can you please explain in detail if...
Hi,
Can you please explain in detail if possible?
i have just copy pasted the script! and i was unable to run!
9,093
Posted By robertbrown624
Sorting files based on timestamp and picking the latest file
Hi Friends,
Newbie to shell scripting
Currently i have used the below to sort data based on filenames and datestamp
$ printf '%s\n' *.dat* | sort -t. -k3,4
filename_1.dat.20120430.Z...
3,102
Posted By robertbrown624
Urgent ...pls Sorting files based on timestamp and picking the latest file
Hi Friends,

Newbie to shell scripting. Currently i have used the below to sort data based on filenames and datestamp

$ printf '%s\n' *.dat* | sort -t. -k3,4
filename_1.dat.20120430.Z...
Showing results 1 to 12 of 12

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