Bonjour,
Je souhaiterai éditer mes scripts sur le cluster depuis mon laptop avec sublime text, comme il est décri ici : Editing files remotely via SSH on SublimeText 3
Comme indiqué sur le tuto, il faut installer un script dans/usr/local/bin/
Cela serait-il posible ?
Merci d’avance !
Théo
Dear @Theo.Desbordes
What is important is that the script you are talking about is present in your $PATH
.
On our clusters, you can create a directory named bin
in your home directory, it will be part of your $PATH
Here is an example to test:
Create the bin
directory
(baobab)-[desborde@login1 ~]$ mkdir bin
Creat a dummy script in the bin
directory
(baobab)-[desborde@login1 ~]$ cat << EOF > bin/toto.sh
> #!/bin/sh
> echo toto
> EOF
Do not forget to make the script executable
(baobab)-[desborde@login1 ~]$ chmod a+x bin/toto.sh
And test it
(baobab)-[desborde@login1 ~]$ toto.sh
toto
1 Like
Thanks very much @Yann.Sagon!