I wanted to import locale
from my computer to a ssh. Therefore I did :
locale > import
Added export on each lines (Do you know any scripting to do it automatically ?)
Copied it from my computer to the ssh :
scp import blablabla@hehehe:~/AFolder
runned it with ./import
but nothing changed at all.
Your
import
file presumably looks something like this:first of all, that's not an executable, so you can't just run it. In any case, what you want to do is source it, not execute it (see here for details ont he various ways of executing/sourcing a file). So you want to do
. import
and not./import
.As for scripting it, here's a simple way: