I didn't tried first example, but I expect it to create file named
'tidy'
I tried to pipe (as in your second example) but it doesn't work
On Dec 14, 9:17 am, Frank Wunderlich <frank.wunderl...@gmail.com>
wrote:
zetah, 14.12.2011 19:06:
tidy *does* support stdin input
> if your /tmp is a tmpfs you can create it there and it is not written to disk.
can you please provide working example?
Yes, in console: `cat sample.html | tidy` works fine.
> you can run a shell with /bin/sh -c "command with piping"
What should be command for piping than?
>> can you please provide working example?
>
> /etc/fstab:
> tmpfs /tmp tmpfs defaults,size=1024m 0 0
> creates a 1024MB Ramdrive and mount it to /tmp. make sure you dont have
> another definition of /tmp
I have no idea what do you mean by this.
I made Lua script that outputs selection to tempfile and replaces
selection by tidy modification. I'm not proud of it, as I find it lame
not being able to figure how to do this without writing to tempfile,
but at least it works and avoids some annoyances like "open save
dialog - figure where to put file - name file - remember to remove it
if not longer needed"
/bin/sh -c "cat sample.html | tidy" should work
and then
/bin/sh -c 'echo "<html><body><H1>test</H1></body></html>" | tidy' should also work
now you have to use your selection
/bin/sh -c 'echo "$(CurrentSelection)" | tidy'
the main problem should be dealing with multiple quotes (")
you can try to create a bash-script (eg. check.sh):
#!/bin/sh
echo "$1"|tidy
maybe without the quotes around $1
$(CurrentSelection)=/path/to/check.sh "$(CurrentSelection)"
you can look in the output pane for errors
>>> can you please provide working example?
>> /etc/fstab:
>> tmpfs /tmp tmpfs defaults,size=1024m 0 0
>> creates a 1024MB Ramdrive and mount it to /tmp. make sure you dont have
>> another definition of /tmp
> I have no idea what do you mean by this.
>
> I made Lua script that outputs selection to tempfile and replaces
> selection by tidy modification. I'm not proud of it, as I find it lame
> not being able to figure how to do this without writing to tempfile,
> but at least it works and avoids some annoyances like "open save
> dialog - figure where to put file - name file - remember to remove it
> if not longer needed"
you don't know the linux fstab-file? there you define the filesystems
mountpoints
I don't even want to comment your fstab approach
I assume that you want to help, but please try your theory first,
before publishing to general public
On Dec 16, 3:09 pm, Frank Wunderlich <frank.wunderl...@gmail.com>
wrote:
> klo uo, 15.12.2011 21:02:
>
> > On Thu, Dec 15, 2011 at 8:27 PM, Frank Wunderlich
> > <frank.wunderl...@gmail.com> wrote: