From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4204 invoked from network); 12 Feb 2009 15:48:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Feb 2009 15:48:34 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 18922 invoked from network); 12 Feb 2009 15:48:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Feb 2009 15:48:17 -0000 Received: (qmail 19692 invoked by alias); 12 Feb 2009 15:48:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13823 Received: (qmail 19679 invoked from network); 12 Feb 2009 15:47:59 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 12 Feb 2009 15:47:59 -0000 Received: from vms173019pub.verizon.net (vms173019pub.verizon.net [206.46.173.19]) by bifrost.dotsrc.org (Postfix) with ESMTP id 508C780271F0 for ; Thu, 12 Feb 2009 16:47:56 +0100 (CET) Received: from torch.brasslantern.com ([96.238.220.215]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KEY00GVEMJBEOJ0@vms173019.mailsrvcs.net> for zsh-users@sunsite.dk; Thu, 12 Feb 2009 09:47:40 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n1CFlYsc010981 for ; Thu, 12 Feb 2009 07:47:35 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n1CFlYG9010980 for zsh-users@sunsite.dk; Thu, 12 Feb 2009 07:47:34 -0800 From: Bart Schaefer Message-id: <090212074734.ZM10979@torch.brasslantern.com> Date: Thu, 12 Feb 2009 07:47:34 -0800 In-reply-to: Comments: In reply to Alan "zsh in cron" (Feb 12, 9:46am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@sunsite.dk Subject: Re: zsh in cron MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/8984/Thu Feb 12 15:24:21 2009 on bifrost X-Virus-Status: Clean On Feb 12, 9:46am, Alan wrote: } } I am trying to get the whole env variables that I get when I am logged in } but via cron: } } I doing this with crontab -e: } } * * * * * zsh -lc "env" >& $HOME/out I'm not sure why you want to to this, but try adding the -i option and just for safety turn off ZLE: * * * * * zsh -ilc +Z "env" >& $HOME/out This will force zsh to be an interactive shell and read more of the startup files. The -c option will still cause the shell to run only the one command. However, it may try to do terminal setup, so expect some error output.