More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

Run command in root

Hi,
I’d like to be able to run a script on multiple workers using the “run command” option of hiveOS. Unfortunately the script need to be run in the root directory but the “run command” is set at /home/user.

I’ve tried to add different thing before my script but i doesn’t work:
cd && wget …
sudo -i && wget…
Id’ really appreciate some help.

PS: I can’t modify the script, its not mine and I wouldn’t be able to do so anyway :slight_smile:

can you try wget http://your-script-url -P / && bash /your-script.sh

Thanks for your answer but it still doesn’t work.

Even with my script in $HOME/scripts/“script.sh”

if I run this command in HiveOS:

$HOME/scripts/“script.sh” | bash

I get this error message:

bash: line 3: /home/user/scripts/“script.sh”: No such file or directory

It seems like there are no ways to get out of /home/user :frowning:

what script are you running?