screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #57629] Positional parameters in screenrc file?


From: Carl Ponder
Subject: [screen-devel] [bug #57629] Positional parameters in screenrc file?
Date: Sat, 18 Jan 2020 23:30:28 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

URL:
  <https://savannah.gnu.org/bugs/?57629>

                 Summary: Positional parameters in screenrc file?
                 Project: GNU Screen
            Submitted by: carlponder
            Submitted on: Sun 19 Jan 2020 04:30:26 AM UTC
                Category: Feature Request
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.7.0
           Fixed Release: None
         Planned Release: None
           Work Required: None

    _______________________________________________________

Details:

If I put this at the top of a "screenrc" file

     #!/usr/bin/screen -c

and mark the file executable

     -rwxr-xr-x 1 cponder dip 1094 Jan 18 20:19 screenrc

I can actually run it as a command and use the screenrc programming convention
to open windows and execute commands in them.
What I'd like to do, though, is also pass a parameter to this script on the
command-line, like

     ./screen config.1.xml

and be able to use it inside the file, like

     focus right
     screen -t "Director Process"
     exec ... ./bin/director $1 localhost

so the command-line parameter gets expanded on the 3rd line above.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57629>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]