in reply to Re: creating a directory remotely implicitly
in thread creating a directory remotely implicitly

i get the error cannot create directory still aftre using the qq command, is it that we can't create a directory within directory from one single command ? for example : /tmp/some-dir/some-dir2/xyz_uid_date/ now i have to create some-dir/some-dir2/xyz_uid_date/ in one command , how can that be done ?

  • Comment on Re^2: creating a directory remotely implicitly

Replies are listed 'Best First'.
Re^3: creating a directory remotely implicitly
by hippo (Archbishop) on Jun 28, 2016 at 13:50 UTC
Re^3: creating a directory remotely implicitly
by shmem (Chancellor) on Jun 28, 2016 at 13:52 UTC
    how can that be done ?

    According to the mkdir(1) manual page, using the option -p creates the parent directories of the target. Thus,

    $ssh->system(qq{mkdir -p "$remote_dir"});

    will do the trick.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'