Quote:
Originally Posted by scasey
As mentioned, an alias is only available to a terminal/console session.
Clarification: What is the difference between the time <link removed> you're trying to load into $tdate and the current time?
One of "the others":
If the current time is not what you want, create, manually, with touch -t timestamp filename a file that will then have the time you want to use.
Then
Code:
touch -r "filename" "$picc"
|
#Step 1 -> pick the file starting with "ack_" and it will go to list.txt file
cd /$PMTargetFiles/RECEIVED
ls -l ack_*| awk 'NR >0 && !/^d/ {print $NF}' >>list.txt
chmod 664 list.txt
#Step 2 -> check if list.txt has contents (it just does a line count, if greater than 0, then Step 3, else do nothing)
if [ `wc -l lst.txt` -gt 0 ]
then
#Step 3 -> invoke pmcmd (this is that command that executes workflows in unix, check first if this is available in your server)
pmcmd startworkflow –uv <infa_username> –pv <infa_password> –s <integration_service> –f <workflow_folder> –paramfile ‘$PMROOTDIR/PARAM_FILE.TXT’ –wait <workflow_name_to_invoke>
fi
You can then schedule the shell script in crontab to run in x minutes or so, depending on the frequency you need.
Hope this helps, good luck!