View Single Post
Old Nov 5th, 2005, 12:33 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
[php]
#!/usr/bin/perl
$pwd = "";
open(getPwd, "/bin/pwd |");
while(<getPwd>) {
$pwd .= $_;
}
close getPwd;

print "The working directory is, " . $pwd;
[/php]

There is probably a much simpler way, my perl skills are rudimentary.
__________________

tempest is offline   Reply With Quote