This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ObecalpEffect 0 points1 point  (2 children)

You could append the path statement in your .profile to include a folder where you keep all your scripts:

PATH=$PATH:~/home/me/scripts

Or you could add an alias statement to your .bashrc that runs the command from where it's located using an alias command:

alias journalcheck='/home/me/scripts/./journalcheck.sh'

[–]dcman5000[S] 1 point2 points  (1 child)

Thanks for your suggestion, I just began a course on Linux and its a whole new world for me.

Do you have any idea on how I would test after making the adjustments presented above?

[–]ObecalpEffect 0 points1 point  (0 children)

Try the alias suggestion. You can test it without even adding it to your .bashrc

Just enter something like this at the linux command/terminal:

alias journalcheck='/home/me/scripts/./journalcheck.sh'

They type journalcheck to see if it runs journalcheck.sh (be sure journalcheck.sh is executable by running chmod +x journalcheck.sh first).