The acutall shell script is, start:
cd /home/customer/test set dt = `date '+%y%m%d.%H%M'` # Check to see if new test_san.txt has been uploaded to test serve +r if ( -e /home/customer/eram/apps_eram.txt ) then mv test_san.txt test_san.dat ( sudo pgp -e test_san.dat 0x57A59396 >& /dev/null ) >& /dev/ +null sudo chown sgov test_san.dat sudo chgrp users test_san.dat # Create ftp script to ftp files echo "binary" > /tmp/PutFile echo "cd puts" >> /tmp/PutFile echo "put test_san.dat.pgp" >> /tmp/PutFile # Pull the new data from serv and capture the output # DO NOT USE the "n" option with this ftp command ftp -iv ftp.test.com < /tmp/eramPutFile > /tmp/eram_response
in converting the shell to perl script
1.I converted test_san.txt test_san.dat - done
2. test_san.dat.pgp files needs to be created by means of that pgp - i need help
3. Need to put the file test_san.data.pgp to the server ftp.test.com - i can do
In reply to Re^4: shell - pgp - convert to perl
by sago
in thread shell - pgp - convert to perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |