Starting an application as a specific user

I use IRSSI in a screen session on my Linode, running Debian 6. I've been struggling trying to come up with a solution to respawn this process so it will be re-enabled upon a reboot.

What would be the best way to tackle this? I need it to spawn as the user I normally login with.

1 Reply

try a crontab entry

@reboot screen irssi

I'm not sure if restarting cron will cause it to run again.

the other option is

su -c "screen irssi" digilink

in /etc/rc.local

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct