X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=tjVAh6o6Q5WIqwqx 16NDpOcfVbCFlRhNOrSX1w7sTLgAcXGRfLAFkm1K6IacR7L0Aw53aMVdujOualaW LAJbl1plpo842imgbgGAHh4Kv7Ur95ENSNxGJ8zPDmEhmuCEZzChJ5cGbZRZX9IB mCRVNmEn/Ei1OHhj9VU5rfsWAr0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=VKBE02rbUFiuzhOK1vdU/8 NLxi0=; b=OsvdM5cWDOBfdgTtza+sz86SU960JD28pJMXmTf7DKOATQtBlsuQtv n3DCawh29FYDC9IaQ3k80Op6cBUOV/kykMjyyE4Jo6v2LRZXn1cJ15nmLmMpfFXf 7sw8VMkl/coKiidcJCAw9Kgvi6s9UQb4Sks84ClGiFonxJqUz/Slk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=crontab, gene, Gene, Pavlovsky X-HELO: smtp-out-no.shaw.ca X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=6lO1LbsN9mu4L4Ecy-4A:9 a=QEXdDO2ut3YA:10 Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: System crontab with username containing a space To: cygwin AT cygwin DOT com References: From: Brian Inglis Message-ID: <074b170c-ddcb-bc3c-a611-deda42977565@SystematicSw.ab.ca> Date: Thu, 24 Aug 2017 14:00:17 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfAf727PdFWHEIJTez0p7gjuv4ApuiYA5LyNKVaxPoAYoUo3Yrw1Iki/4XGDH8uz2JKwL3+ZF2nNUHskug5yJ8eMknIhuMnUdySk0rL9eFI/mdWBsTudM Jp9Ii4umsKLv+ZmHjRzA8OASLBBckDqTtwzVsMLYyO/S3eKrwN5fr3QN4kPC/hkbmwZVyrgAm24emw== X-IsSubscribed: yes 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