home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / scrconf / target.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  1.4 KB  |  54 lines

  1. /**
  2.  * File:
  3.  *   target.scr
  4.  * Summary:
  5.  *   SCR Agent for interfacing with (shell) commands of the target system
  6.  *   and reading/writing files.
  7.  * Access:
  8.  *   read/write/execute
  9.  * Authors:
  10.  *   Unknown <yast2-hacker@suse.de>
  11.  * See:
  12.  *   libscr
  13.  *   man bash
  14.  *   source/y2a_system/doc/systemagent.txt
  15.  * Example:
  16.  *   Execute (.target.bash, "uname -a")
  17.  *   (0)
  18.  **
  19.  *   Execute (.target.bash_output, "uname -a")
  20.  *   (
  21.  *     $[
  22.  *       "exit":0,
  23.  *       "stderr":"",
  24.  *       "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  25.  *     ]
  26.  *   )
  27.  **
  28.  *   Read(.target.dir, "/")
  29.  *   (["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
  30.  **
  31.  *   Write(.target.string, "/tmp/target.1", "Some Test\n")
  32.  *   (true)
  33.  **
  34.  *   Read(.target.string, "/tmp/target.1")
  35.  *   ("Some Test\n")
  36.  *
  37.  * $Id: target.scr 2807 2002-06-21 16:04:37Z arvin $
  38.  *
  39.  * <p>The target-agent is used for various actions on the target system.</p>
  40.  *
  41.  * <p>The Execute Interface can be used to execute some predefined commands
  42.  * like mount, umount, mkdir, remove, modprobe ... or arbitrary commands
  43.  * using the bash, bash_output or bash_background.</p>
  44.  *
  45.  * <p>The Read and Write interface can be used to access the target
  46.  * filesystem, most prominent reading or writing whole files using the
  47.  * "string" subpath.</p>
  48.  *
  49.  * <p>For more information see the agent's own documentation.</p>
  50.  */
  51. .target
  52.  
  53. `ag_system ()
  54.