I would not say this isn't possible, but extremely complex to parse any scripting language or shell. I wouldn't ever dare to start such a program even having 20+ years of experience in scripting.
You need to have the skill level of a compiler/interpreter developer. Definitively not a practical way to go.
An option i got to know of are snaphotting tools: Run some programm. Look what it did(changed files, permissions,...) and undo the effects made.
Besides: We're at unix.com here. I doubt that you find much ms windows expertise here.
I have been doing unix scripting for quite awhile and there seems to be a wealth of information on it.
Now I am working on migrating an intel based application to a new server.
I need to modify some existing scripts, but am having trouble finding information on windows scripting, a forum similar... (2 Replies)
hi all,
I am a newbie in unix shell script. May I know how to write a bacth job to
read a list of files afrom the inout file and do the chmod ? Thanks.
i.e.
inside input.txt
====
a.txt
b.txt
c.txt
and I want to write a batch job to read the input .txt and do the chmod 755 for all 3... (14 Replies)
Hi all,
We are running a batch job using Unix script. This batch job is running daily to get data from a Mainframe database and to load our tables. We are using an interactive ID for the batch job. If we removed that interactive ID, the batch job fails. What's my question is.. Is the... (1 Reply)
Hi,
I have a shell script to find files older than 'X' days ($2) in directory path ($1) and delete them.
Like this:
my_file_remover.sh /usr/home/c 90
Now, I need to modify this script and add it in CRON, so that it checks other directories also.
Like:
my_file_remover.sh /usr/home/c... (3 Replies)
Hi!
I'm a beginner at scripting, but have managed to complete a working KSH-script.. :D
But since this is going to production i a few weeks, I would like to optimize it and make it better structured!
The idéa of the script is to collect data from the database, put it in a file, and then... (2 Replies)
Hi ,
I am trying to execute one script residing on server B from server A and in automated way but with a trigger.
My main quetion are
1) How I will login to the remote server automatically with user name and password. ( rsh or any other way ?)
2) Once logged in I need to execute... (2 Replies)
Hi,
I am using a batch file to run 2 or more shutdown batch for each of my server like below:
Shutdown_serverA.bat
Shutdown_serverB.bat
...
Is there anyway i can do this in parallel instead of serially:confused:
ServerA & ServerB shutdown at the same time in one click (batch). (4 Replies)