Giter VIP home page Giter VIP logo

retmux's People

Contributors

sdvcrx avatar sk1418 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

retmux's Issues

Restore program?

Is there have any way to backup/restore program? I know retmux not implement it yet, but is there any thought about it, such as do what OS sleep does.

UnicodeEncodeError: 'ascii' codec can't encode characters in position

got this error when trying to list backup

retmux# retmux -v
retmux 1.0.3
retmux -l prod
Details of backup:prod
========================================================================
Traceback (most recent call last):
  File "/usr/local/bin/retmux", line 4, in <module>
    __import__('pkg_resources').run_script('retmux==1.0.0', 'retmux')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 658, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1438, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/EGG-INFO/scripts/retmux", line 92, in <module>
    func(sys.argv[2])
  File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/tmuxbk/controller.py", line 89, in show_and_action
    print '\n'.join(tmux.long_info())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 80-82: ordinal not in range(128)

Python3 support

Just tried installing and using this, only to find it tries to execute using #!/usr/bin/python which resulted in a bad interpreter error. As Python3 is now the default Python executable it would be nice to upgrade this utility to support Python 3 without having to:

  • sudo apt install python2.7
  • edit retmux to point to #!/usr/bin/python2.7

Unable to list/delete sessions

Hello,

Only the backups seems to works.

If I try to delete/list/restore a particular session by example, I have this issue:

retmux -l 20200402_194711
Details of backup:20200402_194711
Traceback (most recent call last):
  File "/usr/local/bin/retmux", line 4, in <module>
    __import__('pkg_resources').run_script('retmux==1.0.0', 'retmux')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 696, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1614, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/EGG-INFO/scripts/retmux", line 92, in <module>
    func(sys.argv[2])
  File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/tmuxbk/controller.py", line 89, in show_and_action
    print '\n'.join(tmux.long_info())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 80-82: ordinal not in range(128)

If can help, you can find here my locale:

LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"

Best regards,

SyntaxError: invalid syntax

$ retmux -v
retmux 1.0.2
$ retmux -b
backing up the current tmux sessions
0:=:(,):=:1
Traceback (most recent call last):
File "/usr/bin/retmux", line 92, in
func(sys.argv[2])
File "/usr/lib/python2.7/site-packages/tmuxbk/controller.py", line 116, in do_backup
backup.backup_tmux(name)
File "/usr/lib/python2.7/site-packages/tmuxbk/backup.py", line 23, in backup_tmux
tmux.sessions = load_sessions()
File "/usr/lib/python2.7/site-packages/tmuxbk/backup.py", line 50, in load_sessions
session.size = eval(s_l[1])
File "", line 1
(,)
^
SyntaxError: invalid syntax

Can't backup when session name has spaces

If session name has spaces, get_windows_from_session will failed because session name will split by space and handle as argument.
It has same problem in get_panes_from_sess_win kill_session and other cmd which need a name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.