home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 632.lha / CLIExe_v1.1 / ClIExe.doc < prev    next >
Text File  |  1992-04-27  |  3KB  |  73 lines

  1.  
  2.    CLIExe
  3.  
  4.  
  5.    CLIExe  allow you to run/execute program/script from WB.  His first goal
  6. was  to  let  you  execute  script in more simple way than XIcon/IconX.  In
  7. programming,'simple' should often means 'efficient'.
  8.  
  9. Mechanism:
  10.  
  11.    In  SHELL  mode  the  process is very simple:  CLIExe create a script by
  12. replacing  the ";" by CR ("\n") and after do a "NewShell FROM script", so this
  13. way CLIExe is 100% compatible with CLI/Shell because IT IS a CLI/Shell.
  14.  
  15.    In  RUN  mode  the  problem was very hard because of conjonction of some
  16. lack  of  the NIL:  and a very often bug.  For programmers, the problem was
  17. that  if  someone  open "*" and write in it without testing successful of the
  18. opening....crash.
  19.    So  in  RUN  mode  the  IO  was  the  same  than parent CLI if you don't
  20. specified the NOIO option.
  21.    If you run ClIExe from cli and the window was not closed when script was
  22. executed, no problem at all else a GURU is posible.
  23.    If  you  specified the NOIO option CLIExe try to open the NULL:  instade
  24. the NILL: if success, no problem, if not, a GURU is possible.
  25.    However in most case there wasen't problem.  Sorry it's not my fault.
  26.  
  27.    Finaly  a  very GOOD news for progammers:  you can supply to Execute() a
  28. string  containing  more  than  one command, each command was separate by a
  29. "\n" !
  30.  
  31.    Execute( "cd ram:\nDir\nList\nWait 5", NULL, Output());
  32.  
  33.    I discover this after a mistake when programing CLIExe, what a pity !
  34.  
  35.  
  36. Usage:
  37.  
  38. CLIExe V1.3 © 1991 by S.R.
  39. Usage: CLIExe <FULLCMDS> command1;command2;...
  40.    [MODERUN] [SHELLCMD] newshell_command
  41.    [WINDOW] con:a/b/c/d/title [STACK] stacksize
  42.    [TMPDIR] directory [PRI] pri [NOIO]
  43.  
  44. FULLCMD  :  Full command, each command was separate by a ";"
  45. MODERUN  :  If  yes,  the  command  was execute like a Run without his own
  46.             window.
  47.             From  CLI,  the  Input/Output was done in the CLI window unless
  48.             you specified the NOIO option, redirection are possible.
  49. SHELLCMD :  The  command  to  execute  to  create the shell in SHELL mode
  50.             (default), usualy a NewShell/Ashell. default AShell.
  51. WINDOW   :  the window for the shell.
  52. STACK    :  The stack. default 4096.
  53. TMPDIR   :  The directory where CLIExe put his temporary script. default T:.
  54. PRI      :  The priority. default 0.
  55. NOIO     :  No Input/Output in Run mode. default off.
  56.  
  57. Example:
  58.  
  59. CLI
  60.  
  61. 1>CLIExe FULLCMD "cd Ram:;Dir;WaitMouse" SHELLCMD=NewShell WINDOW "CON:0/10/640/200/See that..." STACK 8000 TMPDIR Ram: PRI 1
  62.  
  63. WB
  64.  
  65.    DEFAULT TOOL   CLIExe
  66.    TOOL TYPES     FULLCMD=CD Ram:;Dir;Status;Stack;Wait 10
  67.                   SHELLCMD=NewShell
  68.                   WINDOW=CON:0/10/640/200/See that...
  69.                   STACK=10000
  70.                   TMPDIR=T:
  71.                   
  72.  
  73.