You are not logged in.

#1 2024-06-21 07:43:50

rotema8
Member
Registered: 2010-01-07
Posts: 22

[solved] how to run alias under systemd run0 ?

I have aliases for example :

 alias checksys='pacman -Qk 2>&1 |grep -Fv "0 missing"' 

when I run 

 run0 checksys 

  i get error :

 Failed to find executable checksys: No such file or directory 

the alias is working under run0 (like su) . i dont have any other issue running programs with run0  (run0 pacman -Qk is working) 

thanks .

Last edited by rotema8 (2024-06-21 17:15:25)

Offline

#2 2024-06-21 15:41:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [solved] how to run alias under systemd run0 ?

Offline

#3 2024-06-21 17:16:03

rotema8
Member
Registered: 2010-01-07
Posts: 22

Re: [solved] how to run alias under systemd run0 ?

thanks . learned something new today smile

Offline

#4 2024-06-21 20:25:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [solved] how to run alias under systemd run0 ?

Keep in mind that you're expanding the alias in the user shell, not the root shell.
(Ie. if your regular user has "alias foo=foo" and your root has "aliase foo=bar", "run0 foo" will run "foo", not "bar")

Offline

Board footer

Powered by FluxBB