• We've moved. Our community is now at ownd.sh — latest discussions and updates live there.

Need Simple SH script to run at startup

IgniteHost

Contributor
Contributor
IgniteHost Rep
0
0
0
Rep
946
IgniteHost Vouches
32
0
0
Vouches
32
Posts
2,794
Likes
1,799
Bits
4 YEARS
4 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]​
 

MalwareHex

Elite member
Elite member
Rep
0
0
0
Rep
143
Vouches
11
0
0
Vouches
11
Posts
592
Likes
6,919
Bits
5 YEARS
5 YEARS OF SERVICE
ChatGPT will litdrainedlly solve this for you
[Image: tST0zMY.png]
FREE COMBOS -FREESTUFF

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

OpenBSD

Premium member
Premium
Rep
0
0
0
Rep
0
Vouches
0
0
0
Vouches
0
Posts
1
Likes
0
Bits
4 YEARS
4 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
 

179,159

126,023

1,405,739

Top