Solved

Unix script writing

Posted on 2013-05-17
4
344 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 article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now