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 am using a program that runs in this way (for university)
i call it from bask with this syntax: ./nameprogram inp=inpfile xsdir=xsdir2
it runs for around 5 hours then gives me 3 files
after that, i start again with another filename
runs for 5 hours again, then gives me 3 different files (the program looks for the filename and appends 1-2-3 to different files)
now since i can't be there every 5 hours to start again, i wish to make a script that would do for me:
i should start the script and it would care of all the files i list for example on a file by running the program with each one of them..
where can i find info about how to do that?
Hmm, I'm pretty sure that something is wrong in this script (probably a lot) but it should be a good backbone. Take some time, ask around perlmonks.com, look into the perl documentation. As I said, I haven't been using perl for a lot of time now...
Thought about that too, but what assasukasse want to just put in some filenames, and let it execute itself. Sort of like a frontend. And why a Cron job? Can't we have some multiprocessing here? That's why I used "exec" instead of "system". Hello, we're in XXI century!
which would execute the program three times in a row with different input files (1, 2 and 3). If you want someting more elaborate, try writing a bash script. There are some good tutorials out there, e. g. http://www.freeos.com/guides/lsst/index.html
with some help on irc i finally wrote this:
echo " script by assasukasse, linux only please"
for I in `ls *.w`
echo "start $I"
./xyz inp=$I xsdir=xsdir2
mv $I ./done
echo "done $I"
it works wonderfully..however i have a small problem..
i wish to give more visibility to the echoes..
how can i color them?