What I posted is mostly what it is, but I will post the entire tiddler. 
Maybe the fact that it is a exporter can change something:

title: $:/export/sqlplus-script
tags: $:/tags/Exporter
description: Export as sqlplus ready script
extension: .sh
icon: {{$:/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 permissions
read -p "Write your username: " username
read -s -p "Write your password: " pass
nohup sqlplus -s $username/$pass@$database$>$HOME/reports/$(basename 
$0).csv<< EOF &
set echo on
set pagesize 0
set verify off
set lines 32000
set trimspool on
set feedback off
```
\end

<$macrocall $name="bash-script" $output="text/plain" 
database={{$:/status/selected-db}}/>

<br>
<<renderContent>>
<br>

```
exit;
EOF
```




El jueves, 12 de febrero de 2015, 10:35:14 (UTC+1), Jeremy Ruston escribió:
>
> Hi Danielo
>
> Could you perhaps share the full macro definition?
>
> Best wishes
>
> Jeremy
>
> On Thu, Feb 12, 2015 at 7:57 AM, Danielo Rodríguez <[email protected] 
> <javascript:>> wrote:
>
>> Hello,
>>
>> I have a problem I don't know how to solve. I have a macro that should 
>> use some text as input to simply put it inside other text. This text is 
>> hold in a tiddler text field. But if I call the macro like this:
>>
>> <$macrocall $name="bash-script" $output="text/plain" 
>> database={{$:/status/selected-db}}/>
>>
>> Y get a carriage return in the output. The macro is something like this
>>
>> ```
>> nohup sqlplus -s $username/$pass@$database$>$HOME/reports/$(basename 
>> $0).csv<< EOF &
>> ```
>>
>> What can I do? I tried using transclude widget as input with inline mode, 
>> and also text widget. If I use any of those I get true instead of the text 
>> it should receive.
>>
>> Thanks in advance.
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>  

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to