Adler has asked for the wisdom of the Perl Monks concerning the following question:
this situation was solved my problem as the program ran on a different computer then the file i use awk on. Now i have the possibility to to run my program on the same computer which i open the ssh tunnel too. Assuming i run my program using one username, how could i access a file which belongs to a different username and run my awk bash command? P.S. assuming i have the password of the second username and\or ask the admin to do some security changes. thanksmy $str = sprintf("awk \'\\'' \/: %s \/ \{printf \"%%d\\n ",\$4\}'\\'' + prt\/%s\/prt_GPS_%d_%03d", $filename_server , lc $station , $year,$ +doy); $stdout = `ssh username\@111.111.111.111 '$str'`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open a file of a different user
by proceng (Scribe) on May 11, 2010 at 17:12 UTC | |
by JavaFan (Canon) on May 12, 2010 at 01:57 UTC | |
by proceng (Scribe) on May 12, 2010 at 23:46 UTC | |
by JavaFan (Canon) on May 13, 2010 at 13:04 UTC | |
|
Re: Open a file of a different user
by Anonymous Monk on May 11, 2010 at 15:13 UTC | |
|
Re: Open a file of a different user
by walkingthecow (Friar) on May 11, 2010 at 21:37 UTC |