Re: Newbie Questions

2014-02-06 Thread Warren Young
On 2/6/2014 01:13, Andrey Repin wrote: Greetings, Warren Young! [C:\home\Daemon]$ bash -c ./foo.sh That's not the same command I gave you. -c changes how bash.exe interprets the following parameter. According to `man bash', that's the correct command to execute scripts with bash. Are yo

Re: Newbie Questions

2014-02-06 Thread Andrey Repin
Greetings, Warren Young! >> [C:\home\Daemon]$ bash -c ./foo.sh > That's not the same command I gave you. -c changes how bash.exe > interprets the following parameter. According to `man bash', that's the correct command to execute scripts with bash. > It matters, because when you right-click a

Re: Newbie Questions

2014-02-05 Thread Warren Young
On 2/5/2014 18:00, Andrey Repin wrote: [C:\home\Daemon]$ bash -c ./foo.sh That's not the same command I gave you. -c changes how bash.exe interprets the following parameter. It matters, because when you right-click a *.sh file in Windows Explorer, say Open With, then tell Explorer to use

Re: Newbie Questions

2014-02-05 Thread Andrey Repin
Greetings, Warren Young! > On 2/5/2014 15:07, Andrey Repin wrote: >> >>> But if you associate .sh with bash.exe, then double-click that script >>> from Windows Explorer, it won't work right, since bash.exe will try to >>> run it as a shell script. >> >> Have you actually tried that? > Yep. >> Tr

Re: Newbie Questions

2014-02-05 Thread Warren Young
On 2/5/2014 15:07, Andrey Repin wrote: But if you associate .sh with bash.exe, then double-click that script from Windows Explorer, it won't work right, since bash.exe will try to run it as a shell script. Have you actually tried that? Yep. Try it, you'll be surprised. I did try it, bef

Re: Newbie Questions

2014-02-05 Thread Andrey Repin
Greetings, Andrey Repin! >>> I'd bet there are more Bourne shell scripts in the world with no >>> extension at all than .sh. >> That said, if you're wanting to be able to double-click on a shell >> script icon in Windows and associate that with Cygwin's bash.exe, you >> *will* need to pick

Re: Newbie Questions

2014-02-05 Thread Andrey Repin
Greetings, Warren Young! > On 2/5/2014 14:17, Warren Young wrote: >> >> I'd bet there are more Bourne shell scripts in the world with no >> extension at all than .sh. > That said, if you're wanting to be able to double-click on a shell > script icon in Windows and associate that with Cygwin'

Re: Newbie Questions

2014-02-05 Thread Andrey Repin
Greetings, Mike Rushton! > Right ... the extension is a windows thing. Not really. It's a human thing, that let you tell the intended meaning of the file at a glance. > Most of the bourne shell scripts i have come across have no extension. > Some have the Shebang line ... while others don't have

Re: Newbie Questions

2014-02-05 Thread Andrey Repin
Greetings, Warren Young! >>> does cygwin have a preferred extension for scripts ? >> >> No, the extension can be whatever you like. By convention, bash/sh scripts >> with extensions use ".sh". > I'd bet there are more Bourne shell scripts in the world with no > extension at all than .sh. If yo

Re: Newbie Questions

2014-02-05 Thread Mike Rushton
Right ... the extension is a windows thing. Most of the bourne shell scripts i have come across have no extension. Some have the Shebang line ... while others don't have it. I am still in the planing stages ... I am not sure if I am going to use an extension or not. It might be a good idea to

Re: Newbie Questions

2014-02-05 Thread Warren Young
On 2/5/2014 14:17, Warren Young wrote: I'd bet there are more Bourne shell scripts in the world with no extension at all than .sh. That said, if you're wanting to be able to double-click on a shell script icon in Windows and associate that with Cygwin's bash.exe, you *will* need to pick

Re: Newbie Questions

2014-02-05 Thread Warren Young
On 2/5/2014 11:30, Larry Hall (Cygwin) wrote: On 2/5/2014 1:25 PM, Mike Rushton wrote: does cygwin have a preferred extension for scripts ? No, the extension can be whatever you like. By convention, bash/sh scripts with extensions use ".sh". I'd bet there are more Bourne shell scripts in th

Re: Newbie Questions

2014-02-05 Thread Larry Hall (Cygwin)
On 2/5/2014 1:25 PM, Mike Rushton wrote: Thanks for all the help. What I am trying to do is convert some Korn Shell scripts to bash to run under Cygwin. I am wondering, does cygwin have a preferred extension for scripts ? It probably does not matter. Some of the scripts had .ksh on the end o

Re: Newbie Questions

2014-02-05 Thread Mike Rushton
uniform now that I am moving to Cygwin. On 2/4/2014 3:55 PM, Marco Atzeri wrote: On 04/02/2014 20:19, mrushton wrote: I am loving Cygwin. I have been reading the manuals and documentation and have some newbie questions. 1) When I go to execute a script, do I just type the name of it

Re: Newbie Questions

2014-02-04 Thread Marco Atzeri
On 04/02/2014 20:19, mrushton wrote: I am loving Cygwin. I have been reading the manuals and documentation and have some newbie questions. 1) When I go to execute a script, do I just type the name of it or do i have to do a ./NameOfScript ? just the name if it is located in one of the

Re: Newbie Questions

2014-02-04 Thread Gary Johnson
On 2014-02-04, mrushton wrote: > I am loving Cygwin. > > I have been reading the manuals and documentation and have some > newbie questions. These are all general Unix/Linux questions, not specific to Cygwin, and are therefor not appropriate for discussion on the cygwin list.

Newbie Questions

2014-02-04 Thread mrushton
I am loving Cygwin. I have been reading the manuals and documentation and have some newbie questions. 1) When I go to execute a script, do I just type the name of it or do i have to do a ./NameOfScript ? 2) I am trying to do an Alias of the Clear Command ... in my bashrc I has an

Re: Newbie questions: missing packages / script writing

2006-11-01 Thread Larry Hall (Cygwin)
ssing something obvious - what list is aimed at cygwin "newbies"? Adam -- Adam Richardson Carpe Diem This brings up something that I've thought about for a while. Many newbie questions are really not about cygwin, but are really about using a package (in this thread, how doe

RE: Newbie questions: missing packages / script writing

2006-11-01 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
ing obvious - what list is aimed at cygwin "newbies"? > > Adam > > -- > Adam Richardson > Carpe Diem This brings up something that I've thought about for a while. Many newbie questions are really not about cygwin, but are really about using a package

Re: Newbie questions: missing packages / script writing

2006-10-31 Thread Larry Hall (Cygwin)
On 10/31/2006, cygwin wrote: >> Brian Dessent wrote: >>> > >> FYI, this question should have been sent to cygwin-xfree (at) >>> > >> cygwin.com, not here. All X11 topics belong there. >> > > >> > > Sorry, I'm at the stage where I don't know enough to know where to >> > > direct my questions. (

Re: Newbie questions: missing packages / script writing

2006-10-31 Thread cygwin
In message <[EMAIL PROTECTED]>, Matthew Woehlke wrote: > [EMAIL PROTECTED] wrote: > > Leaving 'name' set to your e-mail address is an invitation to be > spammed, ala http://cygwin.com/acronyms/#PCYMTNQREAIYR, since those of > us whose mailers are configured correctly don't always bother to > o

Re: Newbie questions: missing packages / script writing

2006-10-31 Thread Matthew Woehlke
[EMAIL PROTECTED] wrote: Leaving 'name' set to your e-mail address is an invitation to be spammed, ala http://cygwin.com/acronyms/#PCYMTNQREAIYR, since those of us whose mailers are configured correctly don't always bother to obfuscate addresses that senders leave in 'name'. Brian Dessent w

RE: Newbie questions: missing packages / script writing

2006-10-31 Thread cygwin
In message <[EMAIL PROTECTED]>, Buchbinder, Barry \(NIH/NIAID\) [E] wrote: > on Tuesday, October 31, 2006 1:33 PM, [EMAIL PROTECTED] wrote: > > but is there away to double click on a file in Windows and have it > > invoke the bash console and execute my script? > Set up a windows shortcut tha

RE: Newbie questions: missing packages / script writing

2006-10-31 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
on Tuesday, October 31, 2006 1:33 PM, [EMAIL PROTECTED] wrote: > In message <[EMAIL PROTECTED]>, Brian Dessent wrote: > >> FYI, this question should have been sent to cygwin-xfree (at) >> cygwin.com, not here. All X11 topics belong there. > > Sorry, I'm at the stage where I don't know enough to

Re: Newbie questions: missing packages / script writing

2006-10-31 Thread cygwin
In message <[EMAIL PROTECTED]>, Brian Dessent wrote: > > FYI, this question should have been sent to cygwin-xfree (at) > cygwin.com, not here. All X11 topics belong there. Sorry, I'm at the stage where I don't know enough to know where to direct my questions. (I couldn't see a "beginner" mailin

Re: Newbie questions: missing packages / script writing

2006-10-31 Thread Brian Dessent
FYI, this question should have been sent to cygwin-xfree (at) cygwin.com, not here. All X11 topics belong there. [EMAIL PROTECTED] wrote: > Well, the "Package List Search" on cygwin.com says that rman is > included in (amongst others) xorg-x11-man-pages which Setup has a > "keep" next to meanin

RE: Newbie questions: missing packages / script writing

2006-10-31 Thread cygwin
In message <[EMAIL PROTECTED]>, Buchbinder, Barry \(NIH/NIAID\) [E] wrote: > on Tuesday, October 31, 2006 4:50 AM, [EMAIL PROTECTED] wrote: > > I've got Cygwin set up on Windows XP but have run in to a problem. As > > I understand it things, "rman" is present in the default install of > > Cygwin

RE: Newbie questions: missing packages / script writing

2006-10-31 Thread Buchbinder, Barry (NIH/NIAID) [E]
on Tuesday, October 31, 2006 4:50 AM, [EMAIL PROTECTED] wrote: > Hi All, > > I've got Cygwin set up on Windows XP but have run in to a problem. As > I understand it things, "rman" is present in the default install of > Cygwin and Setup says it's present, so shouldn't typing "rman" > produce someth

Newbie questions: missing packages / script writing

2006-10-31 Thread cygwin
Hi All, I've got Cygwin set up on Windows XP but have run in to a problem. As I understand it things, "rman" is present in the default install of Cygwin and Setup says it's present, so shouldn't typing "rman" produce something other than "command not found"? Secondly, how do I create a script so

Re: More newbie questions, SSH and paths

2002-04-24 Thread Andrew Markebo
| > do you ssh from, which machine do you try to run xemacs on? What is | > the value of DISPLAY in that shell you try to fire it up from? | > | > (BTW xemacs does not need to mean Emacs for X11, it is an emacs called | > xemacs, and well this compilation could be missing

Re: More newbie questions, SSH and paths

2002-04-24 Thread Marcos Lorenzo de Santiago
On 24 Apr 2002, Andrew Markebo wrote: > / "B. Joshua Rosen" <[EMAIL PROTECTED]> wrote: > | I've got SSH partially working, I can log into the Win2K box but X > | forwarding isn't working. I've enabled X forwarding in the > | /etc/ssh_config and /etc/sshd_config files but when

Re: More newbie questions, SSH and paths

2002-04-23 Thread Andrew Markebo
/ "B. Joshua Rosen" <[EMAIL PROTECTED]> wrote: | I've got SSH partially working, I can log into the Win2K box but X | forwarding isn't working. I've enabled X forwarding in the | /etc/ssh_config and /etc/sshd_config files but when I ssh -X into the | box and then try to launch Xemacs nothting happ

More newbie questions, SSH and paths

2002-04-23 Thread B. Joshua Rosen
I've got SSH partially working, I can log into the Win2K box but X forwarding isn't working. I've enabled X forwarding in the /etc/ssh_config and /etc/sshd_config files but when I ssh -X into the box and then try to launch Xemacs nothting happens. Does anyonw have any suggestions? I'm also am hav

Re: Newbie Questions about Device Drivers

2002-03-11 Thread Peter Eccles
Hi Miles, Not so long ago, I used Cygwin to do some parallel port bit-bashing using cygwin for a major project in my Computer Systems Engineering degree. It involved direct hardware port IO and sounds similar to what you want to do. The idea was to generate a parallel port abstraction layer for

Newbie Questions about Device Drivers

2002-03-11 Thread Miles Cederman-Haysom
Okay, I'm a 4th year Electrical Engineering student, and I'm currently doing a project using Cygwin - and I've got a bunch of questions about it. I apologise if any questions here have been answered elsewhere, seem daft, or whatever. I have read the Cygwin FAQ, and numerous amounts of documentat

newbie questions

2002-02-13 Thread marcin pakula
Hi, I got couple of questions and I'd appreciate your help ;o)) I'm new to cygwin and pretty new to linux. I was looking for .profile, .bashrc and .inputrc but i can't find them how come ??? In User manual it says that Ican set %HOME% in properties but i got no such thing Finally