Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to write a C/perl shell script but I am not sure exactly to go about writing it.This is what how I can expalin you what the script should exactly do.You need not tell me the code but just point me in the direction and tell me the commands that I can use
I have a directory structure where actually the code resides.different file types are in different folders.The basic idea is as follows
When I run the script it should tar the files in the folder them.
Then it should ftp the file to an ip address that I give in a command then it should untar the file in a particular directory structure that is similar to the one that I have tared the file.this I should ideally be able to do in a single shell script.
Please let me know how I can go about writing the script.
Thanks for all your inputs.
Last edited by Ajit Gunge; 06-20-2012 at 09:31 AM.
A "shell script" is normally written in the language of the shell. Otherwise you'll simply be writing a "Perl Script"---etc.
As for "C script"--I don't know what that would be---unless it were a shell script running in the "C Shell"
to write the actual script, start by trying all the individual commands. The first thing that jumps out at me is I am not sure that "tar" is available in the ftp protocol. (Uncle Google will know.....)
Next, if you start an ftp client during your script, then you need a way of passing ftp commands to ftp---I assume it's possible, but I've never seen the procedure.