This is the mail archive of the
mailing list for the Cygwin project.
Re: System crontab with username containing a space
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Aug 2017 14:00:17 -0600
- Subject: Re: System crontab with username containing a space
- Authentication-results: sourceware.org; auth=none
- References: <CAPTiy3O=_Gb_jS4DBZxvczwJbuFhouVKrR1zz6jTgbLb3FEJ9g@mail.gmail.com>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
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
> 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: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple