Solved

Unix script writing

Posted on 2013-05-17
4
361 Views
Last Modified: 2013-06-19
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
Comment
Question by:agentchange
  • 2
  • 2
4 Comments
 

Author Comment

by:agentchange
ID: 39174689
Unix Script assistance.
0
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 39174728
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
 

Author Comment

by:agentchange
ID: 39175948
Are there any recommended books, tutorials that would be helpful?
0
 
LVL 84

Expert Comment

by:ozo
ID: 39176139
The man pages should explain options to commands
a basic reference book is
http://shop.oreilly.com/product/9780596100292.do
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is about my first experience with programming Arduino.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question