Another possible route: If ExternalTiddlersPlugin will only write a tiddler, if the file it imports can be defined as a tiddler, and you know how to make the shell script write it - please tell ...
Cheers Måns Mårtensson Den søndag den 3. februar 2013 07.03.45 UTC+8 skrev Måns: > > Hi TwWizards > > I want to inject text from a text file into a template in a tiddler. > > This works fine if I just want to render the text in a tiddler (I'm > running a local server and the text file is symlinked into the htdocs/root > folder): > <<tiddler [[localIPwlan.txt|IPwlan.txt]]>> > <<tiddler [[localIPwlan.txt|http://0.0.0.0/localIPwlan.txt]]>> > <<tiddler [[localIPwlan.txt|http://localhost/localIPwlan.txt]]>> > <<tiddler [[localIPwlan.txt|http://127.0.0.1/localIPwlan.txt]]>> > > However none of my examples create a new tiddler and I can't do this: > > <<tiddler TiddlerTitle##template > with:{{store.getTiddlerText('localIPwlan.txt')}}>> > /% > !template > [[Create a EtherPad document|http://$1:9001]] > [[tws - TW and node.js |http://$1:1337]] > [[TiddlyHome|http://$1/TiddlyHome]] > [[TiddlyWeb instance|http://$1:8080/recipes/default/tiddlers.wiki]] > [[phpMyAdmin|http://$1/phpmyadmin]] > ! %/ > > My text file (localIPwlan.txt) is created/overwritten by a shell script > every time my pc starts up: > > #!/bin/bash > ifconfig wlan0 | grep 'inet addr:' | cut -d':' -f2 | awk '{print $1}' > > /opt/lampp/htdocs/phpserver/localIPwlan.txt > > The local ip address is written to IPwlan.txt and I'd like to use/nject > it into a template of predefined urls pointing to different ressources > ports/directories... > > Point is that I'm already able to open all services from this pc on any > device connected to the local network - I just need to distribute a list of > available links ... > > Do you know how to do it with ExternalTiddlersPlugin - or isn't it > possible? > > Cheers Måns Mårtensson > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.