public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: System crontab with username containing a space
Date: Thu, 24 Aug 2017 20:01:00 -0000	[thread overview]
Message-ID: <074b170c-ddcb-bc3c-a611-deda42977565@SystematicSw.ab.ca> (raw)
In-Reply-To: <CAPTiy3O=_Gb_jS4DBZxvczwJbuFhouVKrR1zz6jTgbLb3FEJ9g@mail.gmail.com>

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:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      parent reply	other threads:[~2017-08-24 20:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26  1:44 Gene Pavlovsky
2017-08-24 19:20 ` Erik Soderquist
2017-08-24 22:07   ` Erik Soderquist
2017-08-24 20:01 ` Brian Inglis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=074b170c-ddcb-bc3c-a611-deda42977565@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).