i created crontab that will run the bash script test.sh. This test.sh file requires some input from the user and saves the user input into a variable. How can I guarantee that user input will be stored in a variable in test.sh, and when crontab runs the script, can I get the output I want?
for example, I have 2 files, file1.sh and file2.sh. I put file2.sh in file 1.sh. Then run file1.sh, enter user input and save it somewhere. crontab will run file2.sh and extract the value from the "stored variable". anyway for this?
source
share