I'm kind of confused, I thought doing something like this would work :
#!/bin/bash
wget https://myscript.sh
chmod +x myscript.sh
exec gnome-terminal --tab --active --title="my title" -- myscript.sh
But running this returns :
There was an error creating the child process for this terminal
Failed to execute child process "myscript.sh" (No such file or directory)
Removing exec
doesn't work I also tried putting the file name in between $( )
and " "
, I also tried putting the absolute path.
What am I doing wrong?