• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

Unix script writing

1. Could some explain to me what the -n & -e mean in the attached script.
2. What would be a good source for learning this type of scripting.
Thanks
modified.sh
0
agentchange
Asked:
agentchange
  • 2
  • 2
1 Solution
 
agentchangeAuthor Commented:
Unix Script assistance.
0
 
ozoCommented:
man ksh
...
       -e file
              True if file exists.


man ftp
...
     -n          Restrains ftp from attempting ``auto-login'' upon initial
                 connection for non auto-fetch transfers.  If auto-login is
                 enabled, ftp will check the .netrc (see below) file in the
                 user's home directory for an entry describing an account on
                 the remote machine.  If no entry exists, ftp will prompt for
                 the remote machine login name (default is the user identity
                 on the local machine), and, if necessary, prompt for a pass-
                 word and an account with which to login.  To override the
                 auto-login for auto-fetch transfers, specify the username
                 (and optionally, password) as appropriate.
0
 
agentchangeAuthor Commented:
Are there any recommended books, tutorials that would be helpful?
0
 
ozoCommented:
The man pages should explain options to commands
a basic reference book is
http://shop.oreilly.com/product/9780596100292.do
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now