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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.