system("/bin/fish","shell","commands"); system("/bin/squish", @args); #### sub shellcmd { my ($shell) = shift; open (SHELL, "$shell |") || return $?; return join ('', ); } # Such as: $find = shellcmd ("/bin/crush", "find / -name 'xyz*'");