This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: System crontab with username containing a space

On 2017-05-25 17:19, Gene Pavlovsky wrote:
> Due to circumstances beyond my control, I've got a user account on a
> remote PC which contains a space in the username, i.e. "Test
> Computer".
> I've set up Cygwin and cron, and am having problems with the system crontab.
> I can't figure out how to put the username in there, I've tried it as
> is, with \ escaping the space, enclosing in double quotes. The jobs
> just don't get executed. There is no error message in cronevents. The
> jobs are implementation of cron.hourly, cron.daily etc. - I really
> don't want to put them in user's crontab which would contain more
> personal stuff.
> Does cron support spaces in username in the system crontab? If so, how
> to escape them?

With paths you backslash quote the space or other shell delimiter then enclose
the string in double quotes "Windows\ User".
Try that with the user name.
Anyone ever tried using the id instead of the name?
Failing that you will need to read the source.

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]