Michael Stowe wrote at about 09:54:27 -0500 on Thursday, August 19, 2010: > > I need to be able to start my mysql server after my backup is > > complete , but I am also using a script to send email with various > > stats. Can I chain commands in this field ? I tried calling a script > > but it looses the variable substitutions for my email ($type, $client > > , etc). Was thinking converting this to an array in the code but if > > there is a quick fix I am all ears! Thanks > > > > -barry > > Wait, what's wrong with running a script? What do you mean "looses > variable substitutions?"
I think he needs to pass the variables he intends to use in his script on the script command line (as ARGV's). Of course, he will need to be careful if any of these variables require "protection" or if any of them are pointers, arrays, hashes, etc. But if he is passing "simple" variables without white space or other special Bash characters, it should be easy to pass the parameters on the command line. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
