Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // see if file exists on remote
- SSH::into($env)->exists( 'path/on/remote/filename.extension' );
- // upload file to remote
- SSH::into($env)->put( 'path/to/local/filename', 'path/on/remote/filename' );
- // run a command - only works on SSH connections
- SSH::into($env)->run( 'shasum path/on/remote/filename.extension', function( $line ) {
- // display output of command, by line
- echo $line;
- } );
- // download file from remote
- SSH::into($env)->get( 'path/on/remote/filename', 'path/to/download/filename' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement