What doesn't work? It is easier for others to give the right answer when you tell 'em what the script should to according to you :)
I think the command does work, but the changes you make with your 'env SHELL' to the shell environment are lost when the script ends. If you execute the script from the commandline in bash your perl script runs in a subshell. This means your _$cmd does change the environment, but (i assume) the wrong one. thchau, Jan-Willem On Fri, 5 Oct 2001, Jorge Goncalvez wrote: > HI I wanted to do this: > my _$cmd=env SHELL = /bin/bash d:\dhcp\server\dhcpd.exe eth0; > system(_$cmd) ; > > but it doesn't work why? > Thabks > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]