AboutWelcome to Free Software Daily (FSD). FSD is a hub for news and articles by and for the free and open source community. FSD is a community driven site where members of the community submit and vote for the stories that they think are important and interesting to them. Click the "About" link to read more...
Here is a simple shell script that generates a list of process running on a GNU/Linux system containing the process' PID, name and path. The script is straight forward and one can easily modify it according to their needs.
Reading files is no big deal with bash: you just redirect the input to the script or pipe the output of another command into the script, or you could do it inside the script if the file names are pre-determined. You could also use process substitution to pass in the open files (command pipelines actually) from the command line.
Most of the time developers forget to checkin or update the file/folders from server, With this bash script file will automatically update from server, then lock and open in vi editor whenever developer save the file it will ask for commit message and checkin in server after that it will unlock for other developers.
It's not often that I write about Perl Scripting on Unix Tutorial, but that's just because I don't script in Perl this much on a regular basis. Today, however, I'd like to share one of the building blocks - a really basic piece of functionality which you'll find really useful in almost any Perl script.
"...We make use of an installation script to install the GNU/Hurd system, which resides in the intial ramdisk having the base linux file system. The file system contains all the necessary binaries for the execution of the script...."