Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Issues
  • #341
Closed
Open
Issue created Jul 06, 2018 by mtpay@mtpayDeveloper

problem with variable replacement

Hi,

I have moved from version 3.9.1-foss-2015a-Python-2.7.9 to version 3.11.0b-foss-2015a-Python-2.7.9 and I found a problem with when creating the *cmd files from the templates.

In the template I have a string like this (e.g.: /esarchive/autosubmit/a14t/proj/auto-caliope/templates/hermes/run_hermes.sh):

fdir=$(date +%Y%m%d%H -d "12:00 ${CHUNK_START_DATE}-${n} day")

But in the *cmd file is written like this (e.g.: /esarchive/autosubmit/a14t/tmp/a14t_20150801_1_1_HERMES_IP.cmd_):

fdir=$(date +%Yd%H -d "12:00 ${CHUNK_START_DATE}-${n} day")

It seems like the %m% is replaced by nothing, but in fact I do not want to do anything with this string (+%Y%m%d%H) because if part of the date command.

I have moved to the stable version again where everything works, but it could be nice if you could have a look at this.

Thank you!

MT

FYI: @dmanubens @mcastril

Assignee
Assign to
Time tracking