<$macrocall $name="bash-script" $output="text/plain" database={{$:/status/selected-db}}/>```nohup sqlplus -s $username/$pass@$database$>$HOME/reports/$(basename $0).csv<< EOF &
```--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
title: $:/export/sqlplus-scripttags: $:/tags/Exporterdescription: Export as sqlplus ready scriptextension: .shicon: {{$:/core/images/import-button}}
\define renderContent(){{{ $(exportFilter)$ ||$:/core/templates/plain-text-tiddler}}}\end
\define bash-script(database:"rep_sasdb1")```#!/bin/bash# This is an autonomous script.# Copy it wherever you want inside your logserver home folder and give it execute permissionsread -p "Write your username: " usernameread -s -p "Write your password: " passnohup sqlplus -s $username/$pass@$database$>$HOME/reports/$(basename $0).csv<< EOF &set echo onset pagesize 0set verify offset lines 32000set trimspool onset feedback off```\end
<$macrocall $name="bash-script" $output="text/plain" database={{$:/status/selected-db}}/>
<br><<renderContent>><br>
```exit;EOF```
Does anyone have an explanation for this? It is driving me crazy and I want to "deploy" what I have been working on
At the end this was not a TW problem but a problem with the editor I was using to create the tiddlers which adds automatically an end line to the file.