Help for this page

Select Code to Download


  1. or download this
    ($rad) = $telobj -> cmd ("cd /usr/local/etc/httpd/logs");
    
  2. or download this
    ($rad) = $telobj->("pwd");
    if($rad eq '/usr/local/etc/httpd/logs') {
    ...
    } else {
        print "cd command failed. working directory is $rad\n";
    }
    
  3. or download this
    ($rad) = $telobj -> cmd ("cd /usr/local/etc/httpd/logs");
    if($rad) {
        die "Can't change directory: $rad\n";
    }