Holisticz - Embrace the Infinite

Step into the world of endless opportunities and unlock the gateway to virtual transactions.

  • Domain Update: Our Forum has moved! Please visit us at Holisticz.com for the latest updates.

Need Simple SH script to run at startup

IgniteHost

Contributor
Contributor

0

0%

Status

Offline

Posts

1,050

Likes

707

Rep

866

Bits

0

2

Years of Service

I never did it, im on a Debian 11 System.
I would like to have a screen created at startup, and make it run a nodejs command, so when i connect, i can just reattach the screen.
Anyone can give me a piece of code doing that ?
[Image: ignitehost-pro-signature.gif]
 

0

0%

Status

Offline

Posts

3

Likes

0

Rep

0

Bits

0

3

Years of Service

ChatGPT will literally solve this for you
[Image: tST0zMY.png]
FREE COMBOS -FREESTUFF

[Image: 0OjOKQT.gif]
JOIN FART CLUB TODAY
[Image: hPjExPx.png]
 

OpenBSD

Premium member
Premium

0

0%

Status

Offline

Posts

1

Likes

0

Rep

0

Bits

0

2

Years of Service

Hi, you can do:
vim /etc/rc.local
type screen -d -m node (your node project)

rc.local is executed on startup, then launches a screen in detatched mode
 

48,610

38,214

238,323

Top