Perl script to invoke Cold Backups

Hello,

I am relatively new to Perl and I need help in creating a Perl script to automate a crontab job that starts and shutdowns multiple servers one server at a time. Script is to be run once a week. Below are the steps needed for the job...

  1. Start stopping server1 and server2 using /admin/backups/bin/components_stop
  2. Start stopping server3 and server4 using /admin/backups/bin/components_stop
  3. Start stopping server 5
  4. Start stopping the Database using the cluster
    4a. Start to unmonitor the database
    4b. Start disabling database a
    4c. Start disabling database b
    4d. Start disabling database c
    4e. Start disabling database d

and then start up the application the other way.

The programming to actually run these tasks is already done, we just do it manually once a week. Basically need a Perl script to invoke\automate the whole job. Running in a Solaris 10 environment in crontab...Any suggestions would be very much appreciated...

Thanks

Any particular reason why you want to do this in perl? If you are just calling a bunch of other scripts, it would be simpler to just invoke them from a shell script.

The script needs to be platform independent.

Plain old shell is as ubiquitous as perl, so you shouldn't have any portability issues. Just put the names of the scripts to be run in an executable file and call it from cron... job done!