1

When you run swlist with no arguments on an HPUX system you get the packages that are installed on that particular host. I want that same output but instead listing packages that are installed on a different system.

Is this possible?

j0k
  • 22,600
  • 28
  • 79
  • 90
Jonathan
  • 3,464
  • 9
  • 46
  • 54
  • Wait. Do you mean how do you find Perl packages installed on your system? Or do you mean how do you find software packages on a system other than HPUX (and maybe using Perl to do that)? Cause I thought you were talking about the first one. – mob Mar 01 '11 at 23:40

2 Answers2

1
find $(perl -e 'print"@INC"') -name \*.pm

will get you most of the way there.

mob
  • 117,087
  • 18
  • 149
  • 283
0

Try using Net::SSH::Expect to execute the swlist command on the remote host, grab the output and do what you want with it. That's what I would do.

BadFileMagic
  • 701
  • 3
  • 7