I have the following script in tcsh that looks like this:
df=`ssh $some_server 2>/dev/null df $2 -k`
echo $df
Perl script runs this tcsh script and I have the two following questions:
- What does the first command do?
- How can I determine if I have the ssh keys, before running this command (from the
perlscript for example, or thetcshscript?
As I understand, If I don't have the ssh keys, it will ask for the password. I would like to print a basic warning to the user if he doesn't have the ssh keys.