I am trying to run this script.
And I am getting errors
There’s simple script (by WA3DSP) that can convert the node number to callsign.
I found it very useful to keep tracking what’s going on when I connect to other nodes.
Mike,
Clearly this is a permission error.
Permissions have 3 levels for 3 types of users each.
a owner, group and everyone else
to
read write and execute.
Guessing that you were not root user when you ran the command “chmod +x write_node_callsigns”
and perhaps did not have rights to change the permissions on the file in the first place.
So, try
sudo chmod +x write_node_callsigns
here is some help I found quickly on the subject but it may not be the best,
but now you know the path you need to take.
Hard for me to relate much anymore because I have run as root on many servers for a very long time.
Also see
chown - change owner/group
Mike, thank you for your suggestions…
still having issues…
[root@n3idspi3 ~]# sudo chmod +x write_node_callsigns
chmod: cannot access ‘write_node_callsigns’: No such file or directory
[root@n3idspi3 ~]# sudo ./write_node_callsigns.sh -a
sudo: ./write_node_callsigns.sh: command not found
[root@n3idspi3 ~]#
Sounds like you are using Hamvoip and not AllstarLink. While largely the same function, Doug and crew have made some OS changes in Hamvoip that I found to be less than transparent. The two are not the same. If you are using Hamvoip, you may do better to contact them.
I am kinda guiding you in the blind, so I may say something that may not exactly be relevant.
So, this is a bit generic
The file you are attempting to chmod either has to be in the current directory or you should specify that on your command line to the file.
sudo chmod +x /etc/asterisk/dir/file.sh
Next I might say to check the ownership of the file. Many ways to do that but
ls -l
will do that.
What it needs to be would be unknown to me but I would think asterisk:asterisk would allow it to run from macro sched as well as a sudo or root execution.
sudo chown User:Group
or
sudo chown asterisk:asterisk /path/to/file.sh
Back to your command line…
sudo chmod +x /path/to/file.sh
execute the file
sudo ./write_node_callsigns.sh -a
or state the path in the command if you are not in the same directory
sudo ./dir/path/write_node_callsigns.sh -a
So, I am sorry to stop right there as this becomes more of a lesson in linux which is available online.
Suggesting you go back to the author for better instruction if you are still stumped.
But I hope you get where you are going despite my lack of help and not knowing the program you are working with.
Plain text answer is when you did the chmod, you did not specify the .sh and so it is not the same file.
Some of us who started with dos and converted to linux know this well by experience.
dos/win you have a ‘filespec’ the dot XXX
But in linux, it really is just one filename but we have used the dos contention to help keep things organized.
So, in linux the whole name must be specified.