I have setup a Crontab that executes the "find" command which then executes a shell script on each of it's arguments. At the very end of the first shell script is another "find" command which executes another shell script. My question: is there a way to carry over the original arguments from the first script to the second script? I basically just need the original file-path/file-name of the first script's arguments in order to perform some parameter expansion on and obtain some log files.
Here's the the basics of the script:
Crontab: find "some files" -exec /home/Conversion.sh {} \;
At the end of Conversion.sh: find "some files" -exec /home/Copy.sh {} \;
There's no way to accurately track the files after the Conversion.sh because I'm using "Filebot" on those arguments, which completely changes the file-name of each argument and hence why I must use the "find" command again at the end. Any help is always appreciated!