Solved

Unix script writing

Posted on 2013-05-17
4
332 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 86
null value 15 69
Data center mess 4 49
Tviruailstringtree sort multi columns on header click 1 34
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…

746 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

12 Experts available now in Live!

Get 1:1 Help Now