[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to run automatically a script as soon root login



<tomas@tuxteam.de> writes:

> On Mon, May 13, 2024 at 01:36:23PM +0100, Richmond wrote:
>> I was experimenting, and found this works:
>> 
>> sudo xterm -e "echo 1 > hello"
>
> That's like slicing your morning baguette with the chainsaw.

I do that too.

>
> But if it works for you... hey :-)
>
> Cheers

This also works:

sudo bash -c "echo 1 > hello"


Reply to: