Re: cygwin64 - bash: syntax error near unexpected token `X86'

2016-02-16 Thread Andrew Louie
> I get the expected command not found response in my cygwin64; what do
> you get from "dot --help"?
>

My Apologies, The problem was between the keyboard and chair.

I had an errant alias command in my ~/.bashrc pointing 'dot' to
c:\program files (X86)/

I don't know why I didn't think of it till just now. Problem solved

Thanks,

-- 
-Andrew Louie :wq

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



cygwin64 - bash: syntax error near unexpected token `X86'

2016-02-16 Thread Andrew Louie
I type in the command: 'dot' expecting a bash: dot: command not found
and instead I get:

bash: syntax error near unexpected token `X86'

the command: 'which dot' returns:

which: no dot in ($PATH)

where is bash finding this dot program?

(I'm trying to run graphviz in cygwin with no luck) I think it's a
cygwin64 issue, beucase it used to work in 32bit cygwin)

Thanks for the help.

-- 
-Andrew Louie :wq

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



sshd - seteuid: no such process (windows 64) openssh 5.0p1-1

2008-07-16 Thread Andrew Louie
I'm trying to set up an sshd server on this computer that is running
windows XP (x64), and when I try to login i get this message:

fatal: seteuid 116020: No such process

I looked through my cygcheck, and the only warning seems to be related
to sonic solutions DLA. it is attached.

Is this just a problem with windows 64?


-- 
-Andrew Louie :wq
--雷恩銘


cygcheck_06a.out
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: strange behavior with perl v 5.8.8

2007-09-27 Thread Andrew Louie
On 9/27/07, Brian Mathis  wrote:
> On 9/27/07, Andrew Louie  wrote:
> > Hello,
> >
> > I've run into a strange adding problem with perl:
> >
> > when incrementing by 0.1 i get a strange behavior where at some
> > arbitrary  number, it will append 0.99 to the end of the
> > number.
> >
>
> There's an excellent explanation of this (just posted today about the
> recently discovered Excel 2007 bug) here:
> http://www.joelonsoftware.com/items/2007/09/26b.html
>

thanks!
I never really thought about this before becuase it was never a problem.

anyway I was able to fix my problem with sprintf.

thanks for all the informative replies.


-- 
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



strange behavior with perl v 5.8.8

2007-09-27 Thread Andrew Louie
Hello,

I've run into a strange adding problem with perl:

when incrementing by 0.1 i get a strange behavior where at some
arbitrary  number, it will append 0.99 to the end of the
number.

test case:

my $start = 0;
my $interval = 0.1;
my $end = 10;

do{ print "start: $start\n"; $start += $interval;}until($start >= $end);

Results:
...
start: 4.5
start: 4.6
start: 4.7
start: 4.8
start: 4.9
start: 5
start: 5.1
start: 5.2
start: 5.3
start: 5.4
start: 5.5
start: 5.6
start: 5.7
start: 5.8
start: 5.9
start: 5.99
start: 6.09
start: 6.19
start: 6.29
start: 6.39
start: 6.49
start: 6.59
start: 6.69
start: 6.79
start: 6.89


why all of suddun i get 5.9?

Is this a perl problem?

im using cygwin version 1.5.24
perl -v:

This is perl, v5.8.8 built for cygwin-thread-multi-64int
(with 8 registered patches, see perl -V for more detail)


-- 
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Whither /dev/null ?

2007-09-14 Thread Andrew Louie
> Did you check the Cygwin User's Guide?
> http://cygwin.com/cygwin-ug-net/using-specialnames.html
>
> It sort of explains it.
>
> -Jason
>

I wonder if this problem I'm having with postgresql is related:

$initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user "louiea".
This user must also own the server process.

The database cluster will be initialized with locale C.

fixing permissions on existing directory /usr/local/pgsql/data ... ok
creating directory /usr/local/pgsql/data/global ... ok
creating directory /usr/local/pgsql/data/pg_xlog ... ok
creating directory /usr/local/pgsql/data/pg_xlog/archive_status ... ok
creating directory /usr/local/pgsql/data/pg_clog ... ok
creating directory /usr/local/pgsql/data/pg_subtrans ... ok
creating directory /usr/local/pgsql/data/base ... ok
creating directory /usr/local/pgsql/data/base/1 ... ok
creating directory /usr/local/pgsql/data/pg_tblspc ... ok
selecting default max_connections ... sh: line 1:  3612 Bad system
call "/usr/sbin/postgres.exe" -boot -x0 -F -c
shared_buffers=500 -c max_connections=100 template1 < "/dev/null" >
"/dev/null" 2>&1

I wonder if the Bad system call is due to trying to read/write to /dev/null.



-- 
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



error starting apache2: signal 12 raised

2007-08-30 Thread Andrew Louie
Trying to start the apache2 httpd daemon in cygwin and i get the
following error:

Aug 30 16:55:14 localhost cygwin_apache2: PID 3232: service
`cygwin_apache2' failed: signal 12 raised

im guessing signal 12 is defined in the errno.h ?

$grep 12 /usr/include/sys/errno.h
#define ENOMEM 12   /* Not enough core */

not enough core? no memory?

attached is cygcheck -svr >cygcheck.out

thanks for your help.

-- 
-Andrew Louie


cygcheck.out
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: sshd not working on nineteen w2k servers (/var/empty must be owned by root) works on five win2k servers, works with svc acct and works on w2k3

2007-08-07 Thread Andrew Louie
On 8/7/07, Joel Harrison <> wrote:
> ---
> Here's my test process:
> Clean install + ssh host config .. then:
>
> $ chmod -R 777 log
>
> [EMAIL PROTECTED] /var
> $ net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service could not be started.
>
> The service did not report an error.
>
> More help is available by typing NET HELPMSG 3534.
>
> (Ok that didn't work, so import my domain acct that's a local admin)
>
> [EMAIL PROTECTED] /var
> $ mkpasswd.exe -d -u blackberry_svc >> /etc/passwd
>
> (Set up the domain account as the owner of empty)
>
> [EMAIL PROTECTED] /var
> $ chown blackberry_svc empty/
>
> (Also set up the domain account as the service startup account)
>
> [EMAIL PROTECTED] /var
> $ net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service was started successfully.
>
> Presto... why did I need to do that?

Im still unsure of your exact process here, but It is my understanding
that sshd needs to be able to access /var/empty and /var/log. so if
you want ssd to run as a service as a user account other than the
system account, /var/log and /var/empty need to be accessible by that
user as well.

Im not exactly sure why though, I have no idea what /var/empty is
supposed to be for or what it does.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd not working on nineteen w2k servers (/var/empty must be owned by root) works on five win2k servers, works with svc acct and works on w2k3

2007-08-07 Thread Andrew Louie
On 8/7/07, Joel Harrison <> wrote:
> $ ls -l
> total 0
> drwxr-x---+ 3 g000283 mkgroup-l-d 0 Aug  7 09:14 cache
> drwxr-xr-x+ 2 SYSTEM  root0 Aug  7 09:17 empty
> drwxr-x---+ 3 g000283 mkgroup-l-d 0 Aug  7 09:13 lib
> drwxr-x---+ 2 g000283 mkgroup-l-d 0 Aug  7 09:17 log
> drwxr-x---+ 2 g000283 mkgroup-l-d 0 Aug  7 09:12 run
> drwxr-x---+ 2 g000283 mkgroup-l-d 0 Aug  7 09:12 tmp


is /var/log/sshd.log readable and writable by the SYSTEM account?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ls command changes directories?

2007-08-01 Thread Andrew Louie
Ooops sorry for the top posting, and the e-mail thing, didnt see that
your name was your e-mail =(

> > So when I type give Cygwin the command,
> > rsh -l administrator xxx.xxx.xxx.xxx ls
> > It lists all the elements in the C:/ drive, which is expected
> >
> > But when I give the command,
> > rsh -l administrator xxx.xxx.xxx.xxx ls /folder_in_c_drive
> > It says the folder cannot be found, but it is clearly listed in the C:/
> > drive when I give the command above.  How come?


C:\folder_on_c actually resides on /cygdrive/c/folder_on_c
try
rsh -l administrator xxx.xxx.xxx.xxx ls /cygdrive/c/folder_in_c_drive

-- 
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ls command changes directories?

2007-08-01 Thread Andrew Louie
C:\folder_on_c actually resides on /cygdrive/c/folder_on_c
try
rsh -l administrator xxx.xxx.xxx.xxx ls /cygdrive/c/folder_in_c_drive

On 8/1/07, [EMAIL PROTECTED] <> wrote:
> Hello all,
>
> So when I type give Cygwin the command,
> rsh -l administrator xxx.xxx.xxx.xxx ls
> It lists all the elements in the C:/ drive, which is expected
>
> But when I give the command,
> rsh -l administrator xxx.xxx.xxx.xxx ls /folder_in_c_drive
> It says the folder cannot be found, but it is clearly listed in the C:/
> drive when I give the command above.  How come?
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>
>


-- 
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: screen - doesn't call .bashrc at startup

2007-07-25 Thread Andrew Louie

On 7/25/07, Thorsten Kampe  wrote:



Screen will *never ever* source your .bashrc, that's for sure.


except when you source your .bashrc file from .bash_profile, and
thought it would be a neat trick to call screen from .bashrc so that
it will start up when you start cygwin.

boy, was my face red :)

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ERROR: bash: /etc/profile: No medium found

2007-04-24 Thread Andrew Louie

On 4/24/07, intiha Ho gai  wrote:


However after the setup finished, and I dont think I rebooted, when I

^^
Try rebooting?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Andrew Louie

On 4/11/07, Pierre A. Humblet  wrote:

I have updated cron to version 4.1




If /usr/sbin/sendmail does not point to a mailer, the cron postinstall script
links it to the (new) script /usr/bin/cronlog.



Thanks! It took me a week to figure out how to set up up cron
correctly! first you had to learn how to setup logging correctly just
for the chance that you might catch some kind of useful error message,
then you had to setup an e-mailer correctly, and if you didn't cron
wouldn't tell you that, it would just stop the command after some
random amount of time has passed. >_<



/usr/bin/cronlog is a "poor man's mailer" that writes cron output (if any)
to HOME/cron.log.  HOME can be superseded in the crontab file.
The temporary output of /usr/bin/cronlog is written to /tmp/cron.XXX.log and
/tmp/cron.XXX.log.err. These files are deleted if all goes well but can
provide useful debugging information if HOME/cron.log cannot be written
(e.g. on some network drives).
/usr/bin/cronlog can be edited to suit particular needs.


but, can't we put all the logs in the same place like /var/log by default?
You probably have a good reason to stick it in HOME, I just thought
I'd put the question out there.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Varibles not working in do loop...

2007-04-03 Thread Andrew Louie

On 4/3/07, Kevin Markle  wrote:


There are 2 files related to each client listed in the file
1group_1a_dev_clientlist.out the first grep grabs both files and the
second one get the specific log with the work windows in it:

[EMAIL PROTECTED] /cygdrive/e/wsus/group_1a_DEV
$ ls -al
total 27992
drwxrwxrwx+ 2 Administrators    0 Apr  2 16:51 .
drwx--+ 6 Administrators    0 Apr  3 10:41 ..
-rwx--+ 1 Administrators  1284874 Mar 29 01:19
bvapp1_WINDOWSUpdate.log
-rwx--+ 1 Administrators    27394 Apr  3 10:03
bvapp1_asr.log

DIR="cygdrive/e/wsus/group_1a_DEV"

for t in `cat $DIR/1group_1a_dev_clientlist.out`


Does this "1group_1a_dev_clientlist.out" file exist in the DIR?
I didn't notice it in your directory listing there



--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Varibles not working in do loop...

2007-04-02 Thread Andrew Louie

On 4/2/07, Kevin Markle  wrote:

Larry Hall (Cygwin) expressed precisely :
> Kevin Markle wrote:



What does this mean please and or would you send me your copy that
works fine?
"$LOG" == > "".  In these cases, the "hang" is 'cat' waiting for input
from the command
> line.


I think he means that in the line:


UPDATES_NEEDED=`cat $LOG | grep "updates detected" | tail -1`


cat $LOG... will hang if $LOG == "" because "cat" is waiting for input.

--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: email list

2007-03-19 Thread Andrew Louie

why dont you just set up filters like this:

Matches: to:(cygwin -at- cygwin.com)
Do this: Skip Inbox, Apply label "cygwin-cygwin"

Matches: to:(cygwin-talk -at- cygwin.com)
Do this: Skip Inbox, Apply label "cygwin-talk"

Works perfectly for me, and i have a list of "mini-inbox's" on the
left that shows the number of new messages.

On 3/17/07, Web Developer  wrote:

Hello all,
Can we not get this list to add [cygwin] to beginning of the email subject?
All other lists do it i have; just annoying to look at cygwin list
emails in gmail and trying to figure out where it came from without
setting up email filter or clicking the email itself.

Thanks,
Arian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/





--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd timestamp logging

2007-02-26 Thread Andrew Louie

On 2/26/07, Andrew Louie  wrote:

On 2/26/07, DePriest, Jason R.  wrote:
> Read the book!
> First lines of /usr/share/doc/Cygwin/syslog-ng.README
>
> If you want to use syslog-ng, just run the /usr/bin/syslog-ng-config
> script.  This script will create a default configuration file
> /etc/syslog-ng.conf and it will install syslog-ng as a service on NT
> systems on request.
>

Okay I got it to work and am posting how i did it incase some poor
soul like myself runs into the same problem.

1) use the setup.exe to install the syslog-ng package

2) run: $/usr/bin/syslog-ng-config
follow the prompts and install as a service

3) read the help on the syslog-ng.conf (man syslog-ng.conf)
   define sources, destinations, filters(if necessary) and connect
them with "log" statements


3) edit the /etc/syslog-ng.conf file and add the following source:
  udp(ip("127.0.0.1") port(514));  # ip: localhost, port 514 is
syslog, look in /etc/services for definitions of other ports

4) remember to hook up the source to a destination (like messages)

5) save, and start the syslog-ng service (cygrunsrv -S syslog-ng)

troubleshooting:

If the service fails to start make sure that SYSTEM or whoever you run
the syslog-ng service as can read/write /var/log/syslog-ng.log.

if the service starts but is not logging messages, restart the service
with the -d arguement (debug) and run a tail -f /var/log/syslog-ng.log
to see more helpful messages as they appear.




--
-Andrew Louie



Sorry about the e-mail address I forgot again!!
=/
--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd timestamp logging

2007-02-26 Thread Andrew Louie

On 2/26/07, DePriest, Jason R. <[EMAIL PROTECTED]> wrote:

Read the book!
First lines of /usr/share/doc/Cygwin/syslog-ng.README

If you want to use syslog-ng, just run the /usr/bin/syslog-ng-config
script.  This script will create a default configuration file
/etc/syslog-ng.conf and it will install syslog-ng as a service on NT
systems on request.



Okay I got it to work and am posting how i did it incase some poor
soul like myself runs into the same problem.

1) use the setup.exe to install the syslog-ng package

2) run: $/usr/bin/syslog-ng-config
   follow the prompts and install as a service

3) read the help on the syslog-ng.conf (man syslog-ng.conf)
  define sources, destinations, filters(if necessary) and connect
them with "log" statements


3) edit the /etc/syslog-ng.conf file and add the following source:
 udp(ip("127.0.0.1") port(514));  # ip: localhost, port 514 is
syslog, look in /etc/services for definitions of other ports

4) remember to hook up the source to a destination (like messages)

5) save, and start the syslog-ng service (cygrunsrv -S syslog-ng)

troubleshooting:

If the service fails to start make sure that SYSTEM or whoever you run
the syslog-ng service as can read/write /var/log/syslog-ng.log.

if the service starts but is not logging messages, restart the service
with the -d arguement (debug) and run a tail -f /var/log/syslog-ng.log
to see more helpful messages as they appear.




--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd timestamp logging

2007-02-26 Thread Andrew Louie

On 2/26/07, DePriest, Jason R.  wrote:
I installed syslog-ng as a service with cygrunsrv and I have sshd log to that.
It keeps time stamps.
Liek this:
Feb 26 12:13:31 srvc sshd: PID 1552: Connection from 172.21.128.39 port 5248
Feb 26 12:13:38 srvc sshd: PID 1552: Failed none for USER from
172.21.128.39 port 5248 ssh2
Feb 26 12:13:45 srvc sshd: PID 1552: Failed password for USER from
172.21.128.39 port 5248 ssh2
Feb 26 12:13:48 srvc sshd: PID 1552: Accepted password for USER from
172.21.128.39 port 5248 ssh2



Oops, sorry for the double post and previous top post, i accidently
forgot to reformat my response so here it is again in proper format:

I successfully installed syslog-ng, but the installtion neglected to
install a syslog-ng.conf file. any idea how i can get/generate that
file?
also can you point me in the right direction of some kind of tutorial
on how to use this syslog-ng? the man pages are alittle esoteric.
or can you post the commands you used to get your logging setup like you have?

--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd timestamp logging

2007-02-26 Thread Andrew Louie

thanks,

I successfully installed syslog-ng, but the installtion neglected to
install a syslog-ng.conf file. any idea how i can get/generate that
file?
also can you point me in the right direction of some kind of tutorial
on how to use this syslog-ng? the man pages are alittle esoteric.
or can you post the commands you used to get your logging setup like you have?

On 2/26/07, DePriest, Jason R.  wrote:

On 2/26/07, Andrew Louie  wrote:
> I am able to to get sshd to output logs to /var/logs/sshd.log but all
> the entires do not have time stamps. A search of google yields no
> useful information on how to enable timestamps, i guess timestamps are
> just supposed to be attached by default, but that does not seem to be
> the case here.
>
> Anyone have any idea how I can get sshd log entires with time stamps?
>
> i am running sshd like so under cygrunsrv:
>
> sshd -De
>
> thanks
>
>
> --
> -Andrew Louie
>

I installed syslog-ng as a service with cygrunsrv and I have sshd log to that.
It keeps time stamps.
Liek this:
Feb 26 12:13:31 srvc sshd: PID 1552: Connection from 172.21.128.39 port 5248
Feb 26 12:13:38 srvc sshd: PID 1552: Failed none for USER from
172.21.128.39 port 5248 ssh2
Feb 26 12:13:45 srvc sshd: PID 1552: Failed password for USER from
172.21.128.39 port 5248 ssh2
Feb 26 12:13:48 srvc sshd: PID 1552: Accepted password for USER from
172.21.128.39 port 5248 ssh2

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:       http://cygwin.com/faq/





--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



sshd timestamp logging

2007-02-26 Thread Andrew Louie

I am able to to get sshd to output logs to /var/logs/sshd.log but all
the entires do not have time stamps. A search of google yields no
useful information on how to enable timestamps, i guess timestamps are
just supposed to be attached by default, but that does not seem to be
the case here.

Anyone have any idea how I can get sshd log entires with time stamps?

i am running sshd like so under cygrunsrv:

sshd -De

thanks


--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Perl bug?

2007-01-30 Thread Andrew Louie

> Thanks for the info.  It's interesting to know.  What I still don't get,
> however, is the fact that the same statement does not waste memory on
> the x86 Linux Perl 5.8.5, but does on the x86 Cygwin Perl 5.8.7 and the
> x86_64 Linux 5.8.8.  So it has been introduced only in later versions?
> And why is it defended?  It doesn't seem to make sense, rather on the
> contrary.


This question is slightly offtopic, but I am interested in tracking
how much memory my
perl scripts use, can someone tell me how i could do that?

i tried:
$strace script.pl
strace: error creating process script.pl, (error 193)

thanks,
--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: OT observation: displaying share perms while in an ssh session

2006-12-20 Thread Andrew Louie

On 12/20/06, Tom Rodman  trodman.com> wrote:

Thought this was interesting. My theory: if your in a cygwin
*password* *authenticated* ssh session, and you try to get a reporting
of the permissions for a network share, that the report will fail,
unless SYSTEM has read rights on the share.


Are you talking about having an SSH daemon running through cygwin on a
windows computer, then accessing that computer through ssh, and trying
to read network shares off of it?

You have to change the SSH daemon to run as a user of the domain so
that it can read network shares properly, this guide is a big help:

http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html



--
-Andrew Louie

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command not found

2006-12-20 Thread Andrew Louie
Wallace, Richard K.  ngc.com> writes:

> 
> Hello,
> 
> I have a win 2000 box using eclipse and gnuarm (rev gcc 4.1.1). I am
> using cgwin rev bu-2.17_gcc-4.1.1-c-c++_nl-1.14.0_gi-6.5.exe.
> 
> The make command is failing within eclipse and at command prompt with
> error. 
> 
> (as seen from command prompt)
> R:\ make
> make: arm-elf-gcc: Command not found
> Make: ** [main.o] error 127



perhaps you have the dos line ending problem, see if the configure script has
/r/n line endings, if it does, use the d2u utility to strip out the dos line
endings.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: print from xfig

2006-12-05 Thread Andrew Louie
Steven Woody  gmail.com> writes:

> 
> i can run xfig successuflly, but i can not print our network printer.
> it reported:
> 
> lpr: printer error: can't open 'd:\printersharename'
> 
> what do i do? thank you.
> 


Can you normally print with lpr? 

did you try: lpr -P//networkshare/printername



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bash scripting problem

2006-12-04 Thread Andrew Louie
Gary R. Van Sickle  worldnet.att.net> writes:


> Do you have a link to such a script?  I don't mean a proof-of-principle; I'm
> sure a suitable example can be contrived.  What I'm looking for is a shell
> script "in the wild" that purposely has a carriage return embedded in it for
> reasons other than ending a line of the script.
> 

I'm not sure what you mean. The scripts that give me problems are packages (like
the configure script for subversion 1.4x, before the cygwin release) and simple
bash scripts i created in VIM 7 to just change directories and run perl scripts
both had this dos line endings problem. 

all of my mounts are mounted binmode.

Is there a utility like a hex editor for cygwin that can check files for the
"\r" line endings?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bash scripting problem

2006-12-01 Thread Andrew Louie
>Eric Blake  byu.net> writes:
> No, only run it on text files (it corrupts binary files, such as *.exe).
> 

Okay, I just re-read that message you originally posted, and there are some
vauge (to me at least) instructions on how to configure bash to auto d2u all
scripts that are run. I will try to make it happen!







--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bash scripting problem

2006-12-01 Thread Andrew Louie
Larry Hall (Cygwin  cygwin.com> writes:


> You have DOS line endings in these files.  Use 'd2u' to remove them.
> 

Thanks! I would have never known that, 

now, can i run d2u on every file in my installation? it seems some scripts call
other scripts and then those fail. is it safe to run d2u on everything?





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



bash scripting problem

2006-12-01 Thread Andrew Louie
while trying to run some configure scripts i get this error:

: command not found3: 
./configure: line 21: syntax error near unexpected token `elif'
'/configure: line 21: `elif test -n "${BASH_VERSION+set}" && 
 (set -o posix)>/dev/null 2>&1; then

additional I have written a simple script that consits solely of:

cd /path/to/project
/usr/bin/perl /path/to/script/script.pl
cd /path/to/project2
/usr/bin/perl /path to/script/script.pl
...

for every single line of that script, i get the error :command not found...
but it executes anyway, even though it says there's an error, it still works!

is there a problem with the shell i am running? i set SHELL=/bin/bash in my
.bashrc file.

I am also using the rxvt terminal, my cygwin.bat file looks like this:
@echo off

C:
chdir C:\cygwin\bin
REM set EDITOR=vi
REM set VISUAL=vi
set CYGWIN=codepage:oem tty binmode title
rxvt -e bash --login -i

thanks for your help.



 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: system account files mystery

2006-11-30 Thread Andrew Louie
dsacks  calico-consulting.com> writes:

> 

> 
> wait, if I try to vi /etc/sshd_config now I cannot write it, because it is
> owned by SYSTEM and has restrictive rights.
> 
> How do I edit system files now? I don't really grok the permission world in
> cygwin and how unixy permissions and users map to windows. 

Did you try chown your_user_id /etc/sshd_config ? to change the ownership to you
so you can edit it?







--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cron jobs quit after 1 minute

2006-11-30 Thread Andrew Louie
G.W. Haywood  jubileegroup.co.uk> writes:

> Hi there,

> You might find that it's trying to send you mail, and that sendmail
> (or some other mail executable) isn't available.  This will cause the
> cron job to halt.  It caught me out when I first ran cygwin.



Hey!!! You're Right! I set MAILTO='' in my crontab, and the problem went away!
the script runs to completion! 

thanks!!



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cron jobs quit after 1 minute

2006-11-29 Thread Andrew Louie
Dave Korn  artimi.com> writes:

> 
> On 29 November 2006 21:08, Andrew Louie wrote:
> 
> > I want to set up a cron job to execute a perl script every day at 4am. I
> > have successfully set up the job so that it will execute the script, the
> > only problem is the script can take a long time to finish, as it does many
> > different tasks. 
> > 
> > The problem is that after about 1 minute, the script will just stop
> > executing when invoked from the cronjob. does anyone know how to keep the
> > cron service from exiting after 1 minute?
> 
>   Write a script that doesn't crash after 1 minute?
> 
> cheers,
>   DaveK

It dosn't crash, when i run it standalone, it will complete successfully, only
when it is run by the cron service, does it just terminate after one minute.

alittle more information on the script:
the first part of the script does:
it reads all the *.tec.gz files in the dir one by one, unzips them, preplots
them, and zips them back up.

this loop of operations can take a while, and each unzip/preplot/zip process
completes successfully, the cron service will wait for the unzip/preplot/zip
process to complete before terminating my script.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



cron jobs quit after 1 minute

2006-11-29 Thread Andrew Louie
I want to set up a cron job to execute a perl script every day at 4am. I have
successfully set up the job so that it will execute the script, the only problem
is the script can take a long time to finish, as it does many different tasks.

The problem is that after about 1 minute, the script will just stop executing
when invoked from the cronjob. does anyone know how to keep the cron service
from exiting after 1 minute?

thanks

-Andrew


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/