Re: [Emc-users] bash & . ./scripts/rip-environment, moved directory?

2018-09-28 Thread theman whosoldtheworld
The directories was ok. The problem was my way to write the script. I solve with these one. (sorry for my bad language I'm in EU). #!/bin/sh cd '/home/bmeccoffice/linuxcnc-dev' scripts/rip-environment linuxcnc regards bkt Il giorno gio 27 set 2018 alle ore 19:36 Nicklas Karlsson < nickla

Re: [Emc-users] bash & . ./scripts/rip-environment

2018-09-28 Thread theman whosoldtheworld
Thanks at all .. i solve in these way: #!/bin/sh cd '/home/mypc/linuxcnc-dev' scripts/rip-environment linuxcnc Il giorno ven 28 set 2018 alle ore 05:13 Dewey Garrett ha scritto: > In > theman whosoldtheworld writes: > > >I try to run this simple script: > >#!/bin/sh > > /bin/sh is typical

Re: [Emc-users] bash & . ./scripts/rip-environment

2018-09-27 Thread Dewey Garrett
In theman whosoldtheworld writes: >I try to run this simple script: >#!/bin/sh /bin/sh is typically NOT the bash shell: $ which bash /bin/bash so, try using: #!/bin/bash Aside: use of the dot (.) notation for sourcing a file is sometimes confusing to new users. The following are equivalen

Re: [Emc-users] bash & . ./scripts/rip-environment, moved directory?

2018-09-27 Thread Nicklas Karlsson
On Thu, 27 Sep 2018 19:00:00 +0200 theman whosoldtheworld wrote: > I try to run this simple script: > > #!/bin/sh > > cd '/home/bmeccoffice/linuxcnc-dev' > > . ./scripts/rip-environment > > linuxcnc > but in terminal I get an error about . ./ obviusly in a bash script is not > accept these co

Re: [Emc-users] bash & . ./scripts/rip-environment

2018-09-27 Thread Mark Wendt
Backing up just a bit here are you running an executable or just sourcing anot environment file? If the latter you should have something like this: 'source /path/to/file/file_name' Mark On Thu, Sep 27, 2018, 13:02 theman whosoldtheworld wrote: > I try to run this simple script: > > #!/bin/sh >

Re: [Emc-users] bash & . ./scripts/rip-environment

2018-09-27 Thread Mark Wendt
Easiest way is to type the entire path to the executable. Since the script is being run in a non-interactive mode that's probably the best solution. Mark On Thu, Sep 27, 2018, 13:02 theman whosoldtheworld wrote: > I try to run this simple script: > > #!/bin/sh > > cd '/home/bmeccoffice/linuxcnc