Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Script Automationby OkieUnix (Initiate) |
on Aug 14, 2007 at 07:06 UTC ( [id://632409]=perlquestion: print w/replies, xml ) | Need Help?? |
OkieUnix has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to write an perl code that will create a shell script be it bash, bourne, ksh or what ever it be.
I'm having to read a spreadsheet and I'm using some Win32 OLE modules along with Write and Parse Excel modules. So I have that part down ok.
But I'm trying to figure how to create or embed a template within the script that will write out the shell script I require.
Let's say the spreadsheet contained /var/log as a field that the program read.
Then I wanted the perl script to create a simple shell script. That do this:
#!/bin/sh
#
df -k /var/log
# end of script.
Something like that. Have you got any suggestions?
Back to
Seekers of Perl Wisdom
|
|