Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-08-15 15:41:14

fixit
Member
Registered: 2015-01-19
Posts: 82

[SOLVED] Custom action problem

When I run this, filename.txt in Geany is empty.

It runs ok up to geany filename.txt.

What am I doing wrong?

basename %f > filename.txt | geany filename.txt | rm filename.txt

Thanks.

Last edited by KBar (2022-08-16 05:27:49)


Ubuntu-Mate 18.04 and 20.04

Offline

#2 2022-08-15 23:19:10

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,211

Re: [SOLVED] Custom action problem

Without knowing exactly what you're trying to accomplish, I would guess that filename.txt is being deleted before geany has a chance to open it. Try this command instead:

basename %f > filename.txt && geany filename.txt && rm filename.txt

...the "&&" will wait until the previous command completes before it executes the next one.

Offline

#3 2022-08-16 02:31:54

fixit
Member
Registered: 2015-01-19
Posts: 82

Re: [SOLVED] Custom action problem

Thanks. That worked great.


Ubuntu-Mate 18.04 and 20.04

Offline

Board footer

Powered by FluxBB