in reply to Net::SSH2 Question - again-
Usually you use perl for this sort of thing if you want to automate something, in which case you don't need a shell.