Xfce Forum

Sub domains
 

You are not logged in.

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

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

[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 24.04

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

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.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

Re: [SOLVED] Custom action problem

Thanks. That worked great.


Ubuntu-Mate 24.04

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 522.15 KiB (Peak: 522.99 KiB) ]