Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shell used by qx?

Status
Not open for further replies.

cbscdeutsch

Programmer
Mar 19, 2009
1
US
Hi folks,

Specifically Sun Solaris 10 10/08, Perl 5.8.6

When using qx to run a shell command, the standard Solaris shell (sh) is used even though the /etc/passwd entry for the user has /usr/bin/bash. Is it possible to somehow force/coerce qx to always use bash instead of sh? For me that would be very helpful.

Thanks for any help, Christian
 
I don't think you can change it as it uses the systems shell not the users shell. I have never seen anyway change it that I know of.

There is very few reasons to shell out if you can help it. Try and find the perl way to do what your doing.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top