Re: Provide command line arguments with arguments

2011-06-16 Thread Helmut Schneider
Chas. Owens wrote: > On Thu, Jun 16, 2011 at 06:32, Helmut Schneider > wrote: snip > > Although I don't like the idea to construct a script to make other > > scripts work with tmux I must admit that it works fine. > snip > > I am confused, isn't that what you are doing already with > check_for_

Re: Provide command line arguments with arguments

2011-06-16 Thread Chas. Owens
On Thu, Jun 16, 2011 at 06:32, Helmut Schneider wrote: snip > Although I don't like the idea to construct a script to make other > scripts work with tmux I must admit that it works fine. snip I am confused, isn't that what you are doing already with check_for_root_and_start_screen.sh? All you ha

Re: Provide command line arguments with arguments

2011-06-16 Thread Helmut Schneider
Chas. Owens wrote: > On Sat, Jun 11, 2011 at 17:16, Helmut Schneider > wrote: > > Chas. Owens wrote: > > > >> On Sun, May 29, 2011 at 04:23, Helmut Schneider > >> wrote:  snip > >> > I have a script, more a wrapper, that checks for screen and sudo > >> > and if neither screen or sudo are active

Re: Provide command line arguments with arguments

2011-06-11 Thread Chas. Owens
On Sat, Jun 11, 2011 at 17:16, Helmut Schneider wrote: > Chas. Owens wrote: > >> On Sun, May 29, 2011 at 04:23, Helmut Schneider >> wrote:  snip >> > I have a script, more a wrapper, that checks for screen and sudo >> > and if neither screen or sudo are active the script is restarted >> > using s

Re: Provide command line arguments with arguments

2011-06-11 Thread Helmut Schneider
Chas. Owens wrote: > On Sun, May 29, 2011 at 04:23, Helmut Schneider > wrote: snip > > I have a script, more a wrapper, that checks for screen and sudo > > and if neither screen or sudo are active the script is restarted > > using screen and/or sudo: > > snip > > I have found a setup like this

Re: Provide command line arguments with arguments

2011-06-11 Thread Chas. Owens
On Sun, May 29, 2011 at 04:23, Helmut Schneider wrote: snip > I have a script, more a wrapper, that checks for screen and sudo and if > neither screen or sudo are active the script is restarted using screen > and/or sudo: > snip I have found a setup like this to work: in ~/func: function tmuxif

Re: Provide command line arguments with arguments

2011-06-10 Thread Nicholas Marriott
sorry just got back home again, haven't had time to look at this On Fri, Jun 10, 2011 at 08:05:10AM +, Helmut Schneider wrote: > Nicholas Marriott wrote: > > > On Sun, May 29, 2011 at 12:28:04AM +0200, Helmut Schneider wrote: > > > > http://www.mail-archive.com/tmux-users@lists.sourceforge.

Re: Provide command line arguments with arguments

2011-06-10 Thread Helmut Schneider
Nicholas Marriott wrote: > On Sun, May 29, 2011 at 12:28:04AM +0200, Helmut Schneider wrote: > > http://www.mail-archive.com/tmux-users@lists.sourceforge.net/msg01037.html > > > > Has this ever been solved? Here[tm] this is a show stopper. > > > > Imagine a shell script which takes command line

Re: Provide command line arguments with arguments

2011-05-29 Thread Helmut Schneider
Hi Nicholas, From: "Nicholas Marriott" > On Sun, May 29, 2011 at 12:28:04AM +0200, Helmut Schneider wrote: >> Imagine a shell script which takes command line options (e.g. using >> getopts) >> and pass that script to tmux: > > Please give me an example of exactly what you are trying to do that i

Re: Provide command line arguments with arguments

2011-05-28 Thread Micah Cowan
On 05/28/2011 03:28 PM, Helmut Schneider wrote: > While from a shell you can put single quotation marks around the comman when > you e.g. put your script into an alias or call it from another script there > is/seems no way to do that successfully. Your sentence here doesn't make much sense to me,

Re: Provide command line arguments with arguments

2011-05-28 Thread Nicholas Marriott
Please give me an example of exactly what you are trying to do that is impossible. On Sun, May 29, 2011 at 12:28:04AM +0200, Helmut Schneider wrote: > Hi, > > http://www.mail-archive.com/tmux-users@lists.sourceforge.net/msg01037.html > > Has this ever been solved? Here[tm] this is a show stopp

Provide command line arguments with arguments

2011-05-28 Thread Helmut Schneider
Hi, http://www.mail-archive.com/tmux-users@lists.sourceforge.net/msg01037.html Has this ever been solved? Here[tm] this is a show stopper. Imagine a shell script which takes command line options (e.g. using getopts) and pass that script to tmux: [helmut@BSDHelmut ~]$ tmux new /usr/local/bin/pa