home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 106 / af106a.adf / archives / serious.lzx / ViNCEd / S / fork < prev    next >
AmigaDOS Script File  |  1997-11-19  |  383b  |  15 lines

  1. .KEY COMMAND,ARG0,ARG1,ARG2,ARG3,ARG4,ARG5,ARG6,ARG7,ARG8,ARG9 
  2. .BRA {
  3. .KET }
  4.  
  5. if not exists ENV:newid
  6.     setenv newid 0
  7. endif
  8. if "{COMMAND}" eq ""
  9.     run NewCLI window=CONSOLE:fork$newid >NIL:
  10.     SetVNC background
  11. else
  12.     run {COMMAND} {ARGS} {ARG0} {ARG1} {ARG2} {ARG3} {ARG4} {ARG5} {ARG6} {ARG7} {ARG8} {ARG9} >CONSOLE:fork$newid <CONSOLE:fork$newid
  13. endif
  14. setenv newid `eval $newid + 1`
  15.