Write a shell script to invoke various scripts from it in a current directory.
Write a shell script to find two words and also to show the position on the words inside a line.
on 06/01/2012 – Made popular on 06/01/2012
I have N number of python scripts which i am receiving from REST web server and i am saving them in /home/mandar/ . Now i want to write a script to run all the python scripts from this directory and monitor them every minute...if any process is dead or hung it should be restarted by this script.
I am new to shell scripts and many books have written that use #!(sha-bang) line in starting of the script to invoke the interpreter .And this will invoke a new shell for script and do the interpretation line by line.But one of my basic script is still running without the magic line.
so my questions are:
from where did my basic script get the interpreter.
how did the script manages to locate th
I am a novice writing perl scripts so I'd appreciate any help you guys can offer.
I have a list of 100 words in a file (words.txt) and I need to find them in a second file (data.txt). Whenever one of these words is found I need to write that line to a third file (out.txt) and then continue searching for more matches.
I'm just learning to write shell scripts (new to the whole UNIX thing) and I'm wondering if anyone knows of / would like to help me create a "100 interesting shell scripting problems" template to help me, and others like me, to learn scripting.
Am bit new to Shell scripting, I've used some scripts using expect shell to logon to a router, But in my current organization i don't have the package is get installed and do not have the permission to do install also.
Can anyone please suggest me a way how to write a script to log-on into a cisco router without using "expect" in shell script.