umask(1), shell wrappers.
Posted in 1991
Charles Lei writes (quoting Jeffrey Lawhorn) : > > A simpler answer is to write a shell script along the lines of: > > > > > #!/bin/sh > > > umask 0660 > > > your_4gl_app This is very handy for setting up the environment for users who don't normally use informix, or don't use the same engine as your application. You override their path, termcap, sqlexec, etc. settings before running/exec'ing your app. Also means you can echo "Loading ..." or equiv, so they no what's happenning while they're waiting for the baggy old 4ge to load. :-) Incidentally, if you're not running strip(1) on your compiled files, I strongly suggest you do it. It'll often save 20% of the disk space and give faster loads, also. > To give write access to everyone, the umask value should be set to "000". You can get by with just one zero; try "umask 0; umask" Does this really work, tho' ? I seem to remember trying it - can't do it now, no compiler :-( and not having any success: looked like the file permissions didn't depend on the umask. Course, I might just be completely wrong (again!!). Thanks (all) for the useful info. Cheers - Tony. _______________________________________________________________________________ Tony Heskett th@bnr.co.uk |Voice: (+44) 279 429531 x 2637 BNR, London Road, Harlow, Essex, CM17 9NA |Fax: (+44) 279 454187