How do I make scripts my PC executable

2007-08-29 Thread zip184
s possible? (I'm using bash and python scripts) -- View this message in context: http://www.nabble.com/How-do-I-make-scripts-my-PC-executable-tf4349032.html#a12391292 Sent from the Cygwin Users mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe

RE: How do I make scripts my PC executable

2007-08-29 Thread Dave Korn
On 29 August 2007 17:59, zip184 wrote: > I have some scripts I'd like to run without starting cygwin and typing in > their paths. Is there a way to make windows recognize that a file is a > bash/python script and run them like as if I ran them in cygwin? I'd like > to just be able to doubleclick

Re: How do I make scripts my PC executable

2007-08-29 Thread Gary Johnson
On 2007-08-29, Dave Korn wrote: > On 29 August 2007 17:59, zip184 wrote: > > > I have some scripts I'd like to run without starting cygwin and typing in > > their paths. Is there a way to make windows recognize that a file is a > > bash/python script and run them like as if I ran them in cygwin?

RE: How do I make scripts my PC executable

2007-08-29 Thread David Christensen
zip184 wrote: > I have some scripts I'd like to run without starting cygwin and > typing in their paths. Is there a way to make windows recognize that > a file is a bash/python script and run them like as if I ran them in > cygwin? I'd like to just be able to doubleclick them in windows > explore

Re: How do I make scripts my PC executable

2007-08-29 Thread Steve Holden
David Christensen wrote: zip184 wrote: I have some scripts I'd like to run without starting cygwin and typing in their paths. Is there a way to make windows recognize that a file is a bash/python script and run them like as if I ran them in cygwin? I'd like to just be able to doubleclick them

Re: How do I make scripts my PC executable

2007-08-30 Thread Frank Fesevur
Gary Johnson wrote: The first time you do that, windows will complain it doesn't know what to do with a sh file, and offer you the choice of looking up on the web or selecting from a list which program you want to open .sh files with; choose the select-from-a-list option, when the list appears

RE: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
I wrote: > $ cat ssh-backup-all.bat > C:\cygwin\bin\bash ./ssh-backup-all Steve Holden wrote: > Wouldn't it be possible to omit the first two executable lines and > have the batch script read > c:\cygwin\bin\bash -l ./ssh-backup-all I posted a sample shell session. The "$ cat ssh-bac

Re: How do I make scripts my PC executable

2007-08-30 Thread Andrew DeFaria
David Christensen wrote: I wrote: $ cat ssh-backup-all.bat C:\cygwin\bin\bash ./ssh-backup-all Steve Holden wrote: Wouldn't it be possible to omit the first two executable lines and have the batch script read c:\cygwin\bin\bash -l ./ssh-backup-all I posted a sample shell session. The "$ cat ss

Re: How do I make scripts my PC executable

2007-08-30 Thread Steve Holden
David Christensen wrote: I wrote: $ cat ssh-backup-all.bat C:\cygwin\bin\bash ./ssh-backup-all Steve Holden wrote: Wouldn't it be possible to omit the first two executable lines and have the batch script read c:\cygwin\bin\bash -l ./ssh-backup-all I posted a sample shell session

RE: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
Andrew DeFaria wrote: > I think he was saying that this: >$ cat ssh-backup-all.bat >C:\cygwin\bin\bash ./ssh-backup-all >$ cat ssh-backup-all >#! /bin/sh >. /etc/profile >. /home/dpchrist/.bash_profile ># do backup stuff > could be reduced to this: >$ cat ssh-bac

RE: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
Steve Holden wrote: > I posted alternative content for the batch script that would save you > from putting two unnecessary lines in the shell script. Or so I > thought. > The -l (or --login) option has bash read its usual startup files, > thereby avoiding the need four the course (".") commands at

Re: How do I make scripts my PC executable

2007-08-30 Thread Steve Holden
David Christensen wrote: Steve Holden wrote: I posted alternative content for the batch script that would save you from putting two unnecessary lines in the shell script. Or so I thought. The -l (or --login) option has bash read its usual startup files, thereby avoiding the need four the course

RE: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
Steve Holden wrote: > Well there's no need to be so defensive. A simple "that doesn't > work", preferably with a following "because ..." would have been > quite adequate. Now I have seen your reply to Andrew DeFaria I am > somewhat better informed. If my tone put you off, I apologize. Understand

Re: How do I make scripts my PC executable

2007-08-30 Thread Andrew DeFaria
David Christensen wrote: Steve Holden wrote: Well there's no need to be so defensive. A simple "that doesn't work", preferably with a following "because ..." would have been quite adequate. Now I have seen your reply to Andrew DeFaria I am somewhat better informed. If my tone put you off, I ap

Re: How do I make scripts my PC executable

2007-08-31 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew DeFaria on 8/30/2007 11:58 PM: > I'm always amazed how little people know about their own startup > environments and the reluctance to learn more about them thus improving > their environment and productivity. The -l option to bash

RE: How do I make scripts my PC executable

2007-08-31 Thread Dave Korn
On 31 August 2007 13:10, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Andrew DeFaria on 8/30/2007 11:58 PM: >> I'm always amazed how little people know about their own startup >> environments and the reluctance to learn more about them thus improving >> the

RE: How do I make scripts my PC executable

2007-08-31 Thread David Christensen
Andrew DeFaria wrote: > ... Additionally, if say run from cron, Thanks for the reminder -- cron was another issue/ test case that drove me towards the solution I posted. > Since you were obviously having difficulties there is still something > wrong with *your* environment ... > and as such I kn

Re: How do I make scripts my PC executable

2007-08-31 Thread Steve Holden
David Christensen wrote: Andrew DeFaria wrote: [...] We cannot debug your environment because we don't have your environment. I didn't ask for help debugging my environment, TYVM. I was attempting to help zip184 with a problem I've faced in the past, and it turned into a huge exercise in ne