asking for comments on a script

asking for comments on a script

Post by alex » Thu, 25 May 2000 04:00:00



hello!

i just made my first actual script. bash script, under linux slackware7.
it works pretty much ok. it's about changing owner and group recursively
for a directory-structure, and looking for set-uid/set-gid bits.

now i want some feedback.
things like, did i comment too little? should i have used a 'for'
instead of a 'while'? and such... you know, anything you think is
strange or wrong... or good:)

there are a few bugs too. i have pointed them out in the comments.
they are probably just sideeffects of me not knowing enough commands.
but if you want to give me some advice, please do.

hmm
don't know how to send the script itself. paste in here?
no, i'll attach. hops that's ok. it's 5k large.

  thanks in adv. / alex

--

.
.
... ak42 at kurir dot net ...

  x_makemine.sh
4K Download
 
 
 

asking for comments on a script

Post by alex » Thu, 25 May 2000 04:00:00


hmm
should i make the script check if it has the set-uid bit itself?
and perhaps make it send a little emailwarning about that to root
automatically?

--

.
.
... ak42 at kurir dot net ...

 
 
 

1. Asking for comments on simultaneous multiple send/recv

Hello all,

I'm seeking comments on the following test. I'd like to launch N
processes P(1) to P(N) and have each process send a fixed size
of message m(s) to other N-1 processes. The following is the
pseudo code

sync all process;
time start;
for i = 1 to N; do
   if i != my_id, then
       send m(s) to P(i); # not necessarily blocking
   end if
done
for i = 1 to N; do
   if i != my_id, then
       recv m(s) from P(i);  # blocking
   end if
done
sync all process;
time stop;
exit;

Assumption:
1. IPC is to be implemented with UNIX socket interface
2. The wrappers send/recv use a single buffer and send/receive message
   m(s) once.
3. On failure, send/recv unblocks immediately.
4. Test is for shared memory single host, possibly with multiple CPUs.
5. Other assumptions to make the question below more specific

Questions:
1. Under what circumstances a dead lock may occur?
2. Any other ways of arrangement for the same purpose test?
3. Comments.

Comments and suggestions are deeply appreciated.

Ge

2. Need help configuring TFTP server

3. Asking for comments on new HOWTO, setting up a new domain

4. Help: Why can only root run X windows ?

5. Comments within commented text?

6. Cannot change password under NIS

7. how to comment several lines in a script?

8. Minimal embedded linux?

9. Could someone comment on my IPTABLES script?

10. ksh script question - removing comments

11. Need script to remove assembly language comments

12. Script comments solicited

13. least expensive way to put a large comment into a shell script