Peter, > On Mar 4, 2021, at 10:03 AM, Peter Bozek via 4D_Tech <[email protected]> > wrote: > > On Thu, Mar 4, 2021 at 1:59 PM Jörg Knebel via 4D_Tech > <[email protected]> wrote: >> >> $FoDoPath:=Get 4D folder(Current resources folder) >> $FoDoPath:=Convert path system to POSIX($FoDoPath) >> >> $cmd:=$FoDoPath+"./imagesnap -w 2.0 " > > Jörg, > > what seems suspicious to me is the "./" in above. > > "./" is used as a "current folder" path, so IMHO it should not be used > when you construct a full path. You should execute > "/DATA/4Dƒ/TTTCorev18/TTTCorev18.4dbase/Resources/imagesnap -w 2.0" > > BTW, you should enclose path in parenthesis, in case your path contains > spaces. > > Second thing, what I found sometimes useful, especially when I need > several command to execute, is write commands in separate .sh file and > then execute the commands with LEP command "sh pathToFle.sh”.
I agree. LEP operates in its own environment. Every command gets a fresh environment. You can’t count on changes made by previous commands or a reference like ‘./‘. When I need to run multiple commands, I create a batch file and then execute that. Randy Kaempen Intellex Corporation ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

