Tool to run a command

2001-08-22 Thread Messervy, Joe M
Hello, I hope someone can point me in the right direction. As a newbie I am just not sure where to go from here. I have a directory where I have several commands, I would like to create a script that reads the files, prints them out and allows the user to pick which one of the commands to run

regular expression

2001-08-03 Thread Messervy, Joe M
I wrote a small script that goes on to various machines greps for certain events and logs them (I am using plain shell scripting for this). I need to know what machine these events occur so I did an echo $host >> myfile then echo grep results >> myfile. Now I want to call a perl script that wil

creating new config file based on array

2001-07-10 Thread Messervy, Joe M
Hello, I have several files in a directory, and I need to create a config file for each one of them. I already have a standard config file, but it must be modified for each of the files in the directory (hope this makes sense). Here is what I have: #!/usr/bin/perl -w use File::Copy; opendir

connecting to sql database

2001-07-07 Thread Messervy, Joe M
Hello, I have been tasked with writing a script that will prompt the user for a ticket number,some other info, and a sql query. The script should create a directory based on ticket number (easy enough) create files in the directory that contains info based on second query, and then and here is wh