in reply to
Re: Call perl script and capture values in bash.
in thread Call perl script and capture values in bash.
Thank you for your fast reply!
The perl script generates yesterdays date, saves it in $day $month and $year and prints these 3 variables.
I can use this date as one string, that is no problem.
But the perl script also has the variable $counter which is also printed.
The final output looks like this:
print "Backup date: $day\.$month\.$year\n";
print "$counter files have been successfully saved.\n";
I need to use the date and the $counter value in bash.