Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 13th, 2012  |  syntax: Bash  |  size: 1.33 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. script
  2.  -----------------------------------------------------------------
  3.  masi@masi-compaq ~/Dokumenty/scripts $ cat uhk.sh
  4.  #!/bin/sh
  5.  
  6.  mntpoint= "/mnt/uhk/";
  7.  
  8.  sudo sshfs masarlu1@sftp.uhk.cz:/ $mntpoint
  9.  gksudo caja $mntpoint &
  10.  -----------------------------------------------------------------
  11.  
  12.  
  13.  jednotlivé příkazy zadané přes terminál
  14.  -----------------------------------------------------------------
  15.  masi@masi-compaq ~/Dokumenty/scripts $ sudo sshfs masarlu1@sftp.uhk.cz:/ $mntpoint
  16.  masarlu1@sftp.uhk.cz's password:
  17. masi@masi-compaq ~/Dokumenty/scripts $ gksudo caja $mntpoint &
  18. [2] 2776
  19. -----------------------------------------------------------------
  20.  
  21.  
  22. spuštění scriptu
  23. -----------------------------------------------------------------
  24. masi@masi-compaq ~/Dokumenty/scripts $ /home/masi/Dokumenty/scripts/uhk.sh
  25. /home/masi/Dokumenty/scripts/uhk.sh: 3: /home/masi/Dokumenty/scripts/uhk.sh: /mnt/uhk/: Permission denied
  26. Bad address
  27. /home/masi/Dokumenty/scripts/uhk.sh: 8: /home/masi/Dokumenty/scripts/uhk.sh: //: Permission denied
  28. /home/masi/Dokumenty/scripts/uhk.sh: 9: /home/masi/Dokumenty/scripts/uhk.sh: //: Permission denied
  29. /home/masi/Dokumenty/scripts/uhk.sh: 10: /home/masi/Dokumenty/scripts/uhk.sh: //: Permission denied
  30. -----------------------------------------------------------------