Perl Rover v3 pass environment variable to in the Rulesets

Viewed 260

I am using perl Rover module version 3 to login to the Linux/Unix server and run the script. In the ruleset if I add the full path name it copies the script to the remote server, not able to substitute the environment variable.

eg. This works:

 copy:{
       put_file "/home/u1/find.sh" "/tmp/"
        }; 

This didn't work:

copy:{
   put_file "$HOME/find.sh" "/tmp/"
    };

used $ENV{'HOME'}, this also didn't work.

How can I pass the environment variable?

Rover module document. http://rover.sourceforge.net/QuickStart/Rover-QuickStart-3.html#ss3.2

http://rover.sourceforge.net/

2 Answers
Related