LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2017, 04:23 AM   #16
fastcare
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled

Quote:
Originally Posted by scasey View Post
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!

Last edited by rtmistler; 05-31-2017 at 02:02 PM. Reason: hyperlink removed
 
Old 05-31-2017, 02:05 PM   #17
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,314
Blog Entries: 13

Rep: Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370
Hi fastcare,

Just a note to be cautious with cut/paste. It appears as if you've quoted scasey, however within that quote was a hyperlink to some youtube video of unrelated content. Likely that may have just been stuck in your cut/paste buffer, so I've removed that link.

Best Regards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Shell Script: "bash: Bad Substitution - Script for remove "." " thiagofw Programming 14 12-09-2016 10:04 PM
[SOLVED] Bash - Capture "Child" script output with "Parent" without using files or coproc keyword Jason_25 Programming 2 02-14-2016 07:51 PM
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
command " cd .. " not working in bash script? Kilam orez Linux - Newbie 7 03-12-2010 04:14 AM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration