Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Unix script writing

Posted on 2013-05-17
4
Medium Priority
?
376 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

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

Accepted Solution

by:
ozo earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

705 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