Group Shell v.0.3.1

Advertisement
Advertisement

Gsh is a tool to aggregate several remote shells into one. It is used to launch an interactive remote shell on many machines at once. It is written in Python and requires Python ??a€°O? 2.4.Here is the transcript of a sample session:$ gsh 'machine-'waiting (5/14)>This prompts means we are still waiting for 5 out of 14 remote shells.ready (14)>Now this prompts indicates that our 14 remote shells are ready to accept commands.ready (14)> datemachine-01 : Mon Nov 22 21:26:05 CET 2010machine-03 : Mon Nov 22 21:26:05 CET 2010machine-06 : Mon Nov 22 21:26:05 CET 2010machine-07 : Mon Nov 22 21:26:05 CET 2010machine-10 : Mon Nov 22 21:26:05 CET 2010machine-11 : Mon Nov 22 21:26:05 CET 2010machine-12 : Mon Nov 22 21:26:05 CET 2010machine-09 : Mon Nov 22 21:26:05 CET 2010machine-13 : Mon Nov 22 21:26:05 CET 2010machine-14 : Mon Nov 22 21:26:05 CET 2010machine-02 : Mon Nov 22 21:26:05 CET 2010machine-04 : Mon Nov 22 21:26:05 CET 2010machine-05 : Mon Nov 22 21:26:05 CET 2010machine-08 : Mon Nov 22 21:26:05 CET 2010ready (14)>Perfect time synchronization :-)ready (14)> sleep 1hCtrl-C, Ctrl-D and Ctrl-Z are sent to the remote shells, so if Ctrl-Z is pressed now:machine-01 : [1]+ Stopped sleep 1hmachine-03 : [1]+ Stopped sleep 1hmachine-06 : [1]+ Stopped sleep 1hmachine-10 : [1]+ Stopped sleep 1hmachine-11 : [1]+ Stopped sleep 1hmachine-12 : [1]+ Stopped sleep 1hmachine-09 : [1]+ Stopped sleep 1hmachine-14 : [1]+ Stopped sleep 1hmachine-13 : [1]+ Stopped sleep 1hmachine-02 : [1]+ Stopped sleep 1hmachine-07 : [1]+ Stopped sleep 1hmachine-05 : [1]+ Stopped sleep 1hmachine-08 : [1]+ Stopped sleep 1hmachine-04 : [1]+ Stopped sleep 1hready (14)> fgmachine-01 : sleep 1hmachine-06 : sleep 1hmachine-07 : sleep 1hmachine-10 : sleep 1hmachine-12 : sleep 1hmachine-13 : sleep 1hmachine-14 : sleep 1hmachine-02 : sleep 1hmachine-03 : sleep 1hmachine-04 : sleep 1hmachine-05 : sleep 1hmachine-08 : sleep 1hmachine-09 : sleep 1hmachine-11 : sleep 1hPressing Ctrl-C will kill all these sleep processes.Control commands start with a : and are not sent to the remote shells but are interpreted by gsh.ready (14)> :help:add Add one or many remote shells.:chdir Change the current directory of gsh (not the remote shells).:disable Disable sending commands to remote shells.:enable Enable sending commands to remote shells.:export_vars Export some environment variables on enabled remote shells.:help List control commands or show their documentations.:hide_password Do not echo the next typed line.:list List remote shells and their states.:purge Delete disabled remote shells.:quit Quit gsh.:reconnect Try to reconnect to disconnected remote shells.:rename Rename all enabled remote shells with the argument.:replicate Copy a path from one remote shell to all others:reset_prompt Change the prompt to be recognized by gsh.:send_ctrl Send a control character to remote shells.:set_debug Enable or disable debugging output for remote shells.:set_log Duplicate every console I/O into the given local file.:show_read_buffer Print the data read by remote shells.:upload Upload the specified local path to enabled remote shells.For example, we can log what we are doing with the :set_log command:ready (14)> :set_log /tmp/logready (14)> ls /srvmachine-01 : cvsmachine-03 : cvsmachine-06 : cvsmachine-07 : cvsmachine-08 : cvsmachine-10 : cvsmachine-11 : cvsmachine-12 : cvsmachine-13 : cvsmachine-09 : cvsmachine-14 : cvsmachine-02 : cvsmachine-04 : cvsmachine-05 : cvsready (14)> !cat /tmp/log> ls /srvmachine-01 : cvsmachine-03 : cvsmachine-06 : cvsmachine-07 : cvsmachine-08 : cvsmachine-10 : cvsmachine-11 : cvsmachine-12 : cvsmachine-13 : cvsmachine-09 : cvsmachine-14 : cvsmachine-02 : cvsmachine-04 : cvsmachine-05 : cvs> !cat /tmp/logready (14)>Commands prefixed with a ! are executed by a local shell.Gsh also has some file transfer abilities.ready (14)> cd /tmpready (14)> :enable machine-01ready (1)> dd if=/dev/urandom bs=1M count=10 of=10m.randommachine-01 : 10+0 records inmachine-01 : 10+0 records outmachine-01 : 10485760 bytes (10 MB) copied, 1.59032 s, 6.6 MB/sready (1)> :enableready (14)> :replicate machine-01:10m.randommachine-14 : 0 B transferred at 0 B/smachine-14 : 1067.00 KiB transferred at 711.12 KiB/smachine-14 : 2.38 MiB transferred at 1146.85 KiB/smachine-14 : 4.26 MiB transferred at 1669.38 KiB/smachine-14 : 6.48 MiB transferred at 2.03 MiB/smachine-14 : 8.73 MiB transferred at 2.17 MiB/smachine-14 : Done transferring 10496000 bytes (10.01 MiB)ready (14)> sha1sum 10m.randommachine-01 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-03 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-11 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-06 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-09 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-10 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-13 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-14 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-02 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-07 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-12 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-04 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-05 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randommachine-08 : ac8f44beea9ba20ef0954a72cb7b963263660053 10m.randomready (14)>

Gsh is a tool to aggregate several remote ...

 
  • Freeware
  • 61 Kb
  • 179
  • Free
 
 

Review Group Shell

  • captcha
 

Other software of Guillaume Chazarain
  • Pysize  v.0.2Pysize is a graphical and console tool for exploring the size of directories.
    
    New Shell Enhancements software
    • Wallpaper Slideshow Pro  v.4.2.3Wallpaper Slideshow Pro is a great utility for displaying your favorite photos as desktop wallpaper, with lots of different options it offers you complete control on your wallpapers collection. It has support for exif/iptc/xmp and multiple monitors.
    • UltWin  v.1.01.0000UltWin creates an interactive scalable view of the desktop, the Desk View. UltWin creates mini-windows on the Desk View to represent desktop applications and Windows 10 apps.
    • Voice Desktop Clock  v.2.9The main features include Time Voice Preview (male or female), Daily Planner, Shutdown Pc or Log OFF from Windows at any set time, Countdown to the Future Date, Changeable clock hands and frame, Pc Work Time since system start-up, fifty RSS Channels ...
    • Wallpaper Slideshow LT  v.1.6.0Wallpaper Slideshow is a great utility for displaying your favorite photos as desktop wallpaper, it offers you complete control on your wallpapers collection and allows you to easily set your favorite images (JPG, GIF, PNG, TIFF, BMP) as wallpaper ...
    • Bashgal  v.1.0bashgal is simple bash shell script that generates HTML thumbnail galleries using 'convert' and 'jhead'.
    • Heliconia  v.2008-02-21Heliconia is a simple shell script that facilitates searching through and playing video collections.