Good day all,
I'm trying to open a new terminal using a current terminal and execute a program in a specific directory. I've found a lot of documentation on the web so far, such as these:
How can I make a script that opens terminal windows and executes commands in them?
How do I make an entire directory executable?
So, those explain different methods of opening a new window, either by using the gnome-terminal command or the x-terminal-emulator command and then how to pass commands to it. I tried to execute a command doing this, and it said:
Failed to execute child process "/home/pciedev3ubuntu/Documents" (Permission denied)
As someone mentioned in one of them those, the directory path must be executable to do this. So, I tried using the chmod +x command on the directories to allow this to work. The chmod command works on user and Documents, but not home. So, I did it on the two and tried it again, but still get the same message.
I also tried the example using a profile that was created but still run into the same problem.
I'm guessing this is just a basic thing in Linux that you should know, but I am clueless as to how to change the mod for this to work.
I also tried running it with sudo, but it still comes back as permission denied.
Thanks in advance.
x
permission bit means in that context): instead you should change to (cd
) the directory and then execute a specific program file.