Quick solutions will be more forthcoming for questions composed to include the details vital to our coming up with a solution.
Where is the remote script? What method do you intend to use to access it? There's simply not enough detail in your question to make it answerable.
Dave
ssh user@IP2 'perl -pi".bak" -e "s/tmp\.id = 0/tmp\.id = 1/" your_config_file'That would do an in-place edit, and create a backup of your original file called "your_config_file.bak".
Update: I missed that you said that you wanted to do this from within an existing script. In that case, you'll probably be wanting to use [mod://Net:SSH]
perlmonks.org content © perlmonks.org and Anonymous Monk, davido, johnnywang, madtoperl, McDarren, nishanth_ev, RobPayne
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03