problems with some child process

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
Maks1988

problems with some child process

Post by Maks1988 »

Hello!
I have problem with executing mine script that i made.

I got the error "There was an error creating the child process for this terminal"!
The same script is working if i past it in the terminal CLI, but can't load it the simple way clicking on it.
I made the script with sublime text editor, it is saved as *.sh!

If anybody can help me with that i will appreciate it!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: problems with some child process

Post by deepakdeshp »

Run

Code: Select all

chmod +x scripfile
where scripfile is your file containing the script. And run it.
Or run it with

Code: Select all

bash scripfile
#!/bin/bash should be the first line in your file.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Scripts & Bash”