Sponsored Content
Full Discussion: Unix Career Path
The Lounge What is on Your Mind? Unix Career Path Post 302141911 by Just Ice on Tuesday 23rd of October 2007 10:48:24 AM
Old 10-23-2007
unix scripting will get you more familiar with unix and make you more efficient ... if you desire to get into senior positions later, i definitely advise you to take up and get proficient in scripting ...

as an example ... suppose i want to copy one file to 10 servers ... for a non-scripter, the process would be:

Code:
scp file server1:/dir/file
scp file server2:/dir/file
scp file server3:/dir/file
scp file server4:/dir/file
scp file server5:/dir/file
scp file server6:/dir/file
scp file server7:/dir/file
scp file server8:/dir/file
scp file server9:/dir/file
scp file server10:/dir/file

basically a non-scripter took 10 steps to copy the file to 10 servers and did not even confirm yet that it is where it should be ...

for a scripter, the process would be (in kludgy ksh code and assuming proper ssh setup) ...

Code:
x=1; while [ $x -le 10 ]
do
    scp file server${x}:/dir/file
    ssh server${x} "hostname; ls -l /dir/file"
    x=`expr $x + 1`
done

the short script above that one can type on the command line not only copies the file to the designated servers --- it also confirms that the file exists on those designated servers all in 1 shot ...

so a non-typist scripter can take less time to do 1 task than a typist scripter that has to do 1 task 10 times ... big difference, right?

Last edited by Just Ice; 10-26-2007 at 10:48 AM.. Reason: fixed kludgy code
 

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

Career Path/Change - Cert Help

This is a very serious post. I am a Cell Technician (Cellular Base Station Tech) who is completely bored because my job has basically evolved into a Field Secretary position. I love working on T1's and troubleshooting equipment outages and so on and so forth but my job has become VERY... (2 Replies)
Discussion started by: CoopDeVille
2 Replies

2. Programming

Unix Career path

Hi, I am having experience on Perl and C# and worked as Windows Sytem Admin and now iam planning to become a UNIX developer. I am having knowledge on basic UNIX.. can any one suggest me any good material for c/c++ UNIX programming. on what all things a UNIX Programmer needs to... (0 Replies)
Discussion started by: chandrareddy1
0 Replies

3. UNIX for Dummies Questions & Answers

What are the career options in unix apart from unix system administration?

What are the career options in unix apart from unix system administration? (2 Replies)
Discussion started by: thulasidharan2k
2 Replies

4. UNIX for Dummies Questions & Answers

Career path help

I am working in a company in which my work includes working on Linux nodes. The "uname -arv" command outputs - "Linux clx28ap01 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux". I generally use various command to stop/start the servers, checking space,... (7 Replies)
Discussion started by: csrohit
7 Replies

5. What is on Your Mind?

Career path help forum

Hi Admins and Moderators, I am already in job for more than 2 years. I need some guidance in deciding the career path. Please suggest what should be the correct forum to post this to ? Rgrds, Rohit Moved thread to appropriate forum. (0 Replies)
Discussion started by: csrohit
0 Replies

6. What is on Your Mind?

Career Path

First I like to say hi to all the people in this community. The reason I am here is because I am lost and looking for advice on my career path. Here is a short history. I worked in the IT industry for about 10 yrs, sys admin, QA, and developer. During 911 I lost my job. Since then I have... (4 Replies)
Discussion started by: navy
4 Replies

7. What is on Your Mind?

Career in Unix

I need some advice regarding my career. I have been working for a major it company in a unix based support project. I have not learnt much in the 2 years except for basics in unix. I am really worried about my career thinking about what would happen next. I always wanted to be a developer but i... (10 Replies)
Discussion started by: nani2say
10 Replies

8. What is on Your Mind?

UNIX career path

Hi All, This question is regarding career path. I was not sure about which forum I should drop it, so putting it here. I have 12 years of experience on UNIX i.e. majority of Solaris and some of Linux (Suse & Red Hat). Since starting I have been working on 100% administration side and I am not... (0 Replies)
Discussion started by: solaris_1977
0 Replies

9. What is on Your Mind?

UNIX career path for Admin

Hello, Just wanted to have a suggestion on UNIX carrier path and I couldn't found any proper forum/blog where I can put this question better than this one. I have been working on Solaris from past 13 years and some years on Linux. It was completely on Admin side and never on development or... (12 Replies)
Discussion started by: solaris_1977
12 Replies
SCP(1)							    BSD General Commands Manual 						    SCP(1)

NAME
scp -- secure copy (remote file copy program) SYNOPSIS
scp [-pqrvBC46] [-F ssh_config] [-S program] [-P port] [-c cipher] [-i identity_file] [-o ssh_option] [[user@]host1:]file1 [...] [[user@]host2:]file2 DESCRIPTION
scp copies files between hosts on a network. It uses ssh(1) for data transfer, and uses the same authentication and provides the same secu- rity as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if they are needed for authentication. Any file name may contain a host and user specification to indicate that the file is to be copied to/from that host. Copies between two remote hosts are permitted. The options are as follows: -c cipher Selects the cipher to use for encrypting the data transfer. This option is directly passed to ssh(1). -i identity_file Selects the file from which the identity (private key) for RSA authentication is read. This option is directly passed to ssh(1). -p Preserves modification times, access times, and modes from the original file. -r Recursively copy entire directories. -v Verbose mode. Causes scp and ssh(1) to print debugging messages about their progress. This is helpful in debugging connection, authentication, and configuration problems. -B Selects batch mode (prevents asking for passwords or passphrases). -q Disables the progress meter. -C Compression enable. Passes the -C flag to ssh(1) to enable compression. -F ssh_config Specifies an alternative per-user configuration file for ssh. This option is directly passed to ssh(1). -P port Specifies the port to connect to on the remote host. Note that this option is written with a capital 'P', because -p is already reserved for preserving the times and modes of the file in rcp(1). -S program Name of program to use for the encrypted connection. The program must understand ssh(1) options. -o ssh_option Can be used to pass options to ssh in the format used in ssh_config(5). This is useful for specifying options for which there is no separate scp command-line flag. For example, forcing the use of protocol version 1 is specified using scp -oProtocol=1. -4 Forces scp to use IPv4 addresses only. -6 Forces scp to use IPv6 addresses only. DIAGNOSTICS
scp exits with 0 on success or >0 if an error occurred. AUTHORS
Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> HISTORY
scp is based on the rcp(1) program in BSD source code from the Regents of the University of California. SEE ALSO
rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5), sshd(8) BSD
September 25, 1999 BSD
All times are GMT -4. The time now is 12:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy