On 07/06/2018 06:18 AM, Jerry Geis wrote:
/opt/libreoffice5.4/program/soffice.bin --headless --convert-to csv
"/tmp/file 2.xlsx"
MSG="file 2"
MSG="csv \"$MSG\""
echo $MSG
/opt/libreoffice5.4/program/soffice.bin --headless --convert-to $MSG
I'd describe what you're trying to do as "using one
On 06/07/2018 15:18, Jerry Geis wrote:
> MSG="file 2"
> MSG="csv \"$MSG\""
> echo $MSG
> /opt/libreoffice5.4/program/soffice.bin --headless --convert-to $MSG
This is a really convoluted way of doing things, and you'd have to be a
super expert in quoting to get this right. Instead, why don't you
> I am trying to make a variable containing spaces which is MSG. Then add to
> that variable the argument csv. The "echo" above prints the write stuff.
> But when I try to use it in the last command its no longer valid and says
> Source file could not be loaded.
>
> What am I missing? much
Jerry Geis wrote:
> Hi All,
>
> I am trying to build a command line with spaces in the argument. This
> demonstrates what I am trying to do. Clearly the first two commands work
> fine. However, the last 4 lines to not.
>
> /opt/libreoffice5.4/program/soffice.bin --headless --convert-to csv
>
Hi All,
I am trying to build a command line with spaces in the argument. This
demonstrates what I am trying to do. Clearly the first two commands work
fine. However, the last 4 lines to not.
/opt/libreoffice5.4/program/soffice.bin --headless --convert-to csv
"/tmp/file.xlsx"
Hey guys,
messing around with a snippet from a mailing list post,
#!/bin/bash
mkfifo -m 666 /var/spool/my_fifo
exec 42 /var/spool/my_fifo
while true
do
while read -t 5 data 42
do
echo data is ($data)
done
echo read again
done
What happens to
On Thu, 2010-04-08 at 15:57 +, Joseph L. Casale wrote:
Hey guys,
messing around with a snippet from a mailing list post,
#!/bin/bash
mkfifo -m 666 /var/spool/my_fifo
exec 42 /var/spool/my_fifo
while true
do
while read -t 5 data 42
do
echo data
On 04/08/2010 10:57 AM, Joseph L. Casale wrote:
Hey guys,
messing around with a snippet from a mailing list post,
#!/bin/bash
mkfifo -m 666 /var/spool/my_fifo
exec 42 /var/spool/my_fifo
while true
do
while read -t 5 data42
do
echo data is ($data)
Works fine for me. Define short while (to a geologist, that could be a
few millenia). What is the exit code when your script does terminate?
Lol, yeah that was a little weak on my part...
It ran for about a minute.
I am not sure what caused the non 0 exit, I made a new condition based
on a
9 matches
Mail list logo