Help for this page

Select Code to Download


  1. or download this
    # Creates path to home directory
    $homedir = "/var/www/localhost/htdocs/$user_name";
    ...
    ($stdout, $stderr, $exit) = $ssh_conn->cmd( "cp -r $last_user_dir $hom
    +edir");
    $ssh_conn->cmd( "rm -r $last_user_dir" );
    $ssh_conn->cmd( "exit" );
    
  2. or download this
    dns1: Reading configuration data /root/.ssh/config
    dns1: Reading configuration data /etc/ssh_config
    ...
    cp: missing destination file
    Try `cp --help' for more information.
    bash: line 1: /var/www/localhost/htdocs/test: No such file or director
    +y