why is my gid different when I run my script under cron?

2007-03-05 Thread Jerome Fong
Hi there, I have a script that works interactively. However when I schedule it to run with cron, I encounter permission and environment issues. I checked and even though my cron process has my user id, my group id is different. Interactively, I have a gid=10545(mkgroup-l-d), but in my cro

Re: why is my gid different when I run my script under cron?

2007-03-05 Thread Jerome Fong
cting? thanks, Jerome Jerome Fong wrote: Hi there, I have a script that works interactively. However when I schedule it to run with cron, I encounter permission and environment issues. I checked and even though my cron process has my user id, my group id is different. Interactively, I have

Still having problems with cron writing to a restricted directory

2007-03-08 Thread Jerome Fong
Hi there, Sorry, but I am totally confused now. I have a script that creates a new sub-directory and copies files over to the new sub-directory. My problem is, the directory where this sub-directory is supposed to be created is restricted. Only I have have write permissions to the director

how do you create an usable path variable with a space in it?

2007-03-08 Thread Jerome Fong
I've been trying to create a variable for my Java home (/cygdrive/c/Program\ Files/Java/jdk1.5.0_10). However, no matter how I seem to create it, I am not able to use it. I read some threads that suggest creating a symlink without the space in the path name, but is that my only option? What

Re: how do you create an usable path variable with a space in it?

2007-03-08 Thread Jerome Fong
Thanks Brian, It works now. I thought I went through that, but apparently I didn't it wrong. thanks, Jerome Brian Dessent wrote: Jerome Fong wrote: export JAVA_HOME='/cygdrive/c/Program\ Files/Java/jdk1.5.0_10' This is wrong. Either backslash-escape the space or use

Can I use a variable in sed?

2007-05-24 Thread Jerome Fong
I'm trying to write a script that allows me to change the port number depending on when environment I'm in. I can pass in the port number to my script, but I stuck trying to get sed modify my file with my port number variable. Here is the line I'm executing sed '1,$ s^8080^$Shutdown_Port^'

replicating my cygwin install on a different machine

2007-06-06 Thread Jerome Fong
Hi There, I was wondering if there was a way to save and duplicate my cygwin installation so I can replicate it on a different machine. The idea is, I have scripts and programs developed and tested on my cygwin install. I want to be able to deploy everything that I am running on my machine.

Re: replicating my cygwin install on a different machine

2007-06-06 Thread Jerome Fong
Sorry, I'm not sure what am I suppose to tar up? Christopher Faylor wrote: On Wed, Jun 06, 2007 at 06:03:22PM -0500, DePriest, Jason R. wrote: On 6/6/07, Jerome Fong wrote: Hi There, I was wondering if there was a way to save and duplicate my cygwin installation so I can replicate it

what does the plus sign in a ls -l listing indicate?

2007-09-18 Thread Jerome Fong
Hi there, Sorry, but I can't seem to find the answer anywhere. Using the ls -la command, I get a listing of the files in my directory. However, I have files with a "+" sign after their permissions. What does this mean? It doesn't seem to show up in ls examples on the web. ls -la -rwx---

cygpath -u doesn't seem to convert spaces properly

2007-09-25 Thread Jerome Fong
I am trying to use cygpath -u to convert my windows path to an unix path in my shell script. However, it has problems with paths that has spaces in it. For example, "cygpath -u c:\Program Files\Java" is converted to /cygdrive/c/Program Files/Java, which doesn't work. Is there a flag that I am

Re: cygpath -u doesn't seem to convert spaces properly

2007-09-25 Thread Jerome Fong
-u "$(cygpath -m -s "$JAVA_HOME")")" $ echo $ /cygdrive/c/PROGRA~1/Java $ cd $ $ pwd /cygdrive/c/PROGRA~1/Java Notice that I can use $ directly without have to use the double quote. thanks, Jerome Jerome Fong wrote: I am trying to use cygpath -u to convert

Re: cygpath -u doesn't seem to convert spaces properly

2007-09-26 Thread Jerome Fong
Thanks, Jerome Williams, Gerald S (Jerry) wrote: Brian Dessent wrote: $ cd $ttt bash: cd: /cygdrive/c/Program: No such file or directory Yes, that's wrong. [...] It's got nothing to do with cygpath and everything to do with proper portable scripting practice. Quite true. When you're using

who should own the /bin directory?

2007-10-24 Thread Jerome Fong
I'm trying to login as another person, but using "su" tells me I don't have permissions to use bash. Using login gives me errors about no home directory and no permissions to use bash. I check the bin directory and I own all the files. Did I install cygwin incorrectly? who should own the cy

Can't start cron as a service, I'm getting the Win32 error 1062 message

2007-11-07 Thread Jerome Fong
Hi there, I'm not having any luck starting up cron as a service? I installed cygwin as a local user, then I ran mkpasswd with -d since I realized that I should have been a domain user instead. Now, I'm not able start cron as a service. I am using cron_diagnose.sh to config cron as a servi

Re: Cron event logs says (*system*) NOT REGULAR... what does this mean

2007-11-08 Thread Jerome Fong
Dave Korn wrote: On 08 November 2007 20:28, Jerome Fong wrote: Pierre A. Humblet wrote: On 08 November 2007 19:29, Jerome Fong wrote: I got cron working as a daemon, but now it stopped working again. I'm getting the following errors in the cronevents output. Anyone know what this

Re: Cron event logs says (*system*) NOT REGULAR... what does this mean

2007-11-08 Thread Jerome Fong
Pierre A. Humblet wrote: | On 08 November 2007 19:29, Jerome Fong wrote: | | > I got cron working as a daemon, but now it stopped working again. I'm | > getting the following errors in the cronevents output. Anyone know what | > this means? | > 2007/11/08 11:02:18 [SYSTE

Cron event logs says (*system*) NOT REGULAR... what does this mean

2007-11-08 Thread Jerome Fong
I got cron working as a daemon, but now it stopped working again. I'm getting the following errors in the cronevents output. Anyone know what this means? thanks, Jerome 2007/11/08 11:02:18 [SYSTEM] /usr/sbin/cron: PID 1644: (*system*) NOT REGULAR (/etc/cron.d/cron.daily) 2007/11/08 11:02:1

Permissions/acl problem

2007-11-08 Thread Jerome Fong
Interesting problem. I have a nightly build script that has a crontab entry setup to run at 1:30 a.m. every morning. Besides building, it also copies my jar files out to a remote, shared file system for everyone to pickup and deploy in the morning. However, the cron job is having problems wri

Re: Cron event logs says (*system*) NOT REGULAR... what does this mean

2007-11-08 Thread Jerome Fong
Larry Hall (Cygwin) wrote: Jerome Fong wrote: Dave Korn wrote: On 08 November 2007 20:28, Jerome Fong wrote: Pierre A. Humblet wrote: On 08 November 2007 19:29, Jerome Fong wrote: I got cron working as a daemon, but now it stopped working again. I'm getting the following errors i

Re: Permissions/acl problem

2007-11-09 Thread Jerome Fong
Larry Hall (Cygwin) wrote: Jerome Fong wrote: Any idea what I need to change since chmod doesn't seem to have any effect. Add 'smbntsec' to your global CYGWIN environment variable or to your service settings (in the registry) for crond and restart crond. This doesn't

mkpasswd (264): [5] Access is denied.

2008-01-03 Thread Jerome Fong
I'm get the mkpasswd error now even though I wasn't getting it before. I've tried this on several machines now running both XP and Vista without much luck. Therefore it doesn't appear to be a OS problem. I saw the previous thread that said: "Nothing Cygwin can do anything about. The access d

Re: mkpasswd (264): [5] Access is denied.

2008-01-03 Thread Jerome Fong
-- just living with it since it is a single user installation. My guess is that it has to do with Windows security policies. I am running XP SP1 with the problem. At work we run WS2003 with no problem. What is your OS? -Original Message- From: Jerome Fong [mailto:[EMAIL PROTECTED] Sent

Re: mkpasswd (264): [5] Access is denied.

2008-01-03 Thread Jerome Fong
-- just living with it since it is a single user installation. My guess is that it has to do with Windows security policies. I am running XP SP1 with the problem. At work we run WS2003 with no problem. What is your OS? -Original Message- From: Jerome Fong [mailto:[EMAIL PROTECTED] Sent