It's all about the answers!

Ask a question

How can I call dot command inside Perl script?


Jirong Hu (1.5k7271256) | asked Sep 20 '12, 4:58 p.m.
 Hi 

I want to transfer files from one server to another using .put and .get command. But all my scripts are in a Perl file. Each BF step just calls a function in that Perl, not directly write command inside a BF step.

How can I use .get command inside a perl script? I can run .get directly inside a doc command windows so I guess I can't do this? `.put ${FILE} rfksappd02_c999752:dummy`;

Thanks
Jirong

2 answers



permanent link
David Brauneis (50611) | answered Sep 25 '12, 4:15 p.m.
JAZZ DEVELOPER
 I do not believe that you can run a dot command inside of a script executed by a step (I believe that the dot command is evaluated/executed before passing the control to the shell/script).

permanent link
Spencer Murata (2.3k115970) | answered Oct 01 '12, 3:58 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
The dot command is specific to the Build Forge engine.  However in your example you could put the "${FILE} rfksappd02_c999752:dummy" part into a temporary variable (see .tset) in Build Forge and reference it in a subsequent .put command.

Your answer


Register or to post your answer.