Changeset 2480 in Sophya for trunk/SophyaProg/Tests


Ignore:
Timestamp:
Dec 9, 2003, 9:28:50 AM (22 years ago)
Author:
ansari
Message:

programme test de fonctionalite PPF, en particulier ecriture de PositionTag (utilisation pour Swap) et I/O PPFNameTag - Reza 9 Dec 2003

Location:
trunk/SophyaProg/Tests
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/tcmd.cc

    r2447 r2480  
    3030cmd.RegisterCommand(kw, usage, this, hgrp);
    3131kw = "cp";
    32 usage = "cp: Execute /usr/bin/mv \n";
     32usage = "cp: Execute /usr/bin/cp \n";
    3333cmd.RegisterCommand(kw, usage, this, hgrp);
    3434}
     
    4242  else if (kw == "cp") cmd = "/usr/bin/cp " ;
    4343  else cmd = "/usr/bin/echo " ;
     44  for(int kk=0; kk<args.size(); kk++)  { cmd += args[kk]; cmd += ' '; }
    4445  cout << "TCmdExecutor::Execute() : Executing " << cmd << endl;
    4546  return system(cmd.c_str());
     
    8990    buff[1023] = '\0';
    9091    if (ret && ( (buff[0] != '\0') && (buff[0] != '\n') && (buff[0] != '\r')) ) {
    91       //      buff[strlen(buff)-1] = '\0';
     92      buff[strlen(buff)-1] = '\0';
    9293      string cline = buff;
    9394      cmd.Interpret(cline);
Note: See TracChangeset for help on using the changeset viewer.