#!/usr/bin/php
<?php
  /*
   * cloudManager
   * tools/cloudManager/cmscp
   * YeAPF 0.8.61-173 built on 2018-12-12 17:54 (-2 DST)
   * Copyright (C) 2004-2018 Esteban Daniel Dortta - dortta@yahoo.com
   * 2018-06-01 09:31:47 (-2 DST)
   *
   * purpouse: to copy file over the network.
   */

  (@include_once "yclilib.php") or die("yclilib.php not found\n");
  if ($argc==3) {

    doOnCloud('scp');

  } else {
    $myself=$argv[0];
    echo "$myself src dest\n";
    echo "src or dest can be node referenced as in these samples:\n";
    echo "  $myself *.html A:/var/www/html    (copy all html files to the 'A' node)\n";
    echo "  $myself *.php *:/var/www/html   (copy all php files to all nodes)\n";
    echo "\n\nWARNING: Disable bash wildcard expansion with 'set -f' statement before use this command";
  }
?>
