From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: [babel] Need different beginning for tangled script Date: Wed, 3 Feb 2010 16:14:22 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1424415190==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncfzu-0004Bm-4m for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 09:14:26 -0500 Received: from [199.232.76.173] (port=39224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncfzt-0004BV-Nx for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 09:14:25 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncfzs-0006kL-S5 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 09:14:25 -0500 Received: from ey-out-1920.google.com ([74.125.78.145]:6620) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ncfzs-0006j9-G3 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 09:14:24 -0500 Received: by ey-out-1920.google.com with SMTP id 4so299791eyg.34 for ; Wed, 03 Feb 2010 06:14:22 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============1424415190== Content-Type: multipart/alternative; boundary=0016e6d99fa1c0810e047eb2d578 --0016e6d99fa1c0810e047eb2d578 Content-Type: text/plain; charset=ISO-8859-1 Hi I want to use org-mode to create a submit script for a cluster, and would need the first lines to be as follow: #!/bin/bash #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G at the moment I get: #!/usr/bin/env sh # generated by org-babel-tangle # [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/HakeaLandscape/trunc/R/spreadSim.org::*submit%20scripts][block-19]] #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G 1) Is the first line customizable, or do I have to change org-babel-sh.el to use #!/bin/bash instead? 2) Can I ommit the second and third line (the comments added by tangle)? Thanks, and I must say org-mode is getting better and better Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: Rainer@krugs.de Skype: RMkrug Google: R.M.Krug@gmail.com --0016e6d99fa1c0810e047eb2d578 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi

I want to use org-mode to create a submit = script for a cluster, and would need the first lines to be as follow:
=

#!/bin/= bash
#$ -cwd -j y
#$ -t 1-5
=
#$ -l mem_free=3D4G

at the moment I get:

= #!/usr/bin/env sh
# generated by org-babel-tangle
# [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/HakeaLandscap= e/trunc/R/spreadSim.org::*submit%20scripts][block-19]]
#$ -cwd -j y
#$ -t 1-5
#$ -l mem_free=3D4G

1) Is the first line customizable, or do I have to change org-babel-sh.el t= o use #!/bin/bash=A0instead?
2) Can I ommit the second and= third line (the comments added by tangle)?

Thanks, and I must say org-mode is getting better and b= etter

Cheers,

Rainer --
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ec= ology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

= Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenu= e
Stellenbosch
South Africa

Cell: =A0 =A0 =A0 =A0 =A0 +27 - (0= )83 9479 042
Fax: =A0 =A0 =A0 =A0 =A0 =A0+27 - (0)86 516 2782
Fax: = =A0 =A0 =A0 =A0 =A0 =A0+49 - (0)321 2125 2244
email: =A0 =A0 =A0 =A0 =A0Rainer@krugs.de

Skype: =A0 =A0 =A0 =A0 =A0RMkrug
Google: = =A0 =A0 =A0 =A0 R.M= .Krug@gmail.com

--0016e6d99fa1c0810e047eb2d578-- --===============1424415190== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1424415190==--