Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 176 of 807  Not logged in ELOG logo
ID Date Icondown Author Author Email Category OS ELOG Version Subject
  1952   Fri Sep 22 08:55:22 2006 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows Re: Attribute and checkbox
Well, what we use for such kind of check lists is the following:

Use Preset test = file.txt where file.txt contains exactly the ASCII code you mentioned, like
[ job done]  [ customer ] [ activity ] [ What should be done ]
[]            BLA          Check job1   Backup mail check
[]            BLA1         Check job2   check error report
[]            Bla2         Check job3   check MQ jobs

So one can put the "X" in the "[]" manually. I know, the individual lines are no real elog attributes, but it works nicely for some check lists. Drawback might be that a use can edit the whole text, but sometimes I find that's even a plus, since the user might add some comments.
  1953   Fri Sep 22 19:31:15 2006 Reply Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714Re: Shell execution generating error

Stefan Ritt wrote:

Steve Jones wrote:
When started as root *but not running as a daemon* shell execution results in the following errors that are sent to Standard Error:
Cannot restore original GID/UID.
Cannot remove pidfile "/var/run/cr-elogd.pid"
; Permission denied
Cannot restore original GID/UID.
Cannot remove pidfile "/var/run/cr-elogd.pid"
; Permission denied


The "/var/run/elogd.pid" file is created from elogd to indicate under which PID it is running. If you run elogd once under root, this file then belongs to root. If you afterwards run it under a user account, it cannot delete or change the file belonging to root. In that case, just delete that file manually.




Quote:

When a process starts via the normal startup process it is started as root then the process changes to run as nobody -- so the pid file will always be owned by root. Yes? Then, shell commands wil not be able to deal with the pid file, right? Why would the shell exec want to deal with the PID file anyway?

Just curious. As long as this does not pose a problem then I will nto worry about it.
  1954   Fri Sep 22 19:32:45 2006 Reply Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714Re: SVN1714 will not run in 'daemon" mode on Solaris8

Stefan Ritt wrote:

Steve Jones wrote:
On Solaris, SVN1714 will not go into daemon mode. Running the compiled version under TRUSS (which provides a dump of every system call) and shows precisely where elog is failing. I have attached two TRUSS outputs: one where it errors out and the other where it runs but "interactively". Both runs are as root, simply one with and one without the "-D"


The "one where it errors out" does not look like an error. It does the "fork()" at the end and the main thread ends, that's how it's supposed to be.



Quote:


Ok, what this tells me is I need to get TRUSS to follow the fork - which I think I can do. The behavior, however, is that elog never goes into daemon mode after that fork.

More info to follow.
  1955   Fri Sep 22 19:42:21 2006 Reply Steve Jonessteve.jones@freescale.comQuestionAll2.6.2-1714Re: "Supress Email Notification" checkbox

Stefan Ritt wrote:

Steve Jones wrote:

Steve Jones wrote:
Is there a way to allow email notification but have the "Suppress Email Notification" checked by default? We had complaints about the enormous amount of email so I turned off email notification for edits/replys, but there are times that I would like to allow email to be sent out -- this would imply allowing email by unchecking the "Suppress" box.


What I think would be needed is:
Suppress Email on edit = 0|1|2
                             ^
Where a '2' denotes that the "Suppress Email Notification" shows up but *checked*


Just to a
Suppress default = 1




Quote:

Not quite what I am looking for. What I need is:

"New" Logs
- Always send an email -- do not provide an option to check the box.
-- use
Suppress Default = 2

"Edits and Replys"
- Provide the option to send an email, but by default the "suppress" box is checked
-- need
Suppress Email on edit = 2 

  1956   Fri Sep 22 22:12:18 2006 Reply Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714Re: SVN1714 will not run in 'daemon" mode on Solaris8

Stefan Ritt wrote:

Steve Jones wrote:
On Solaris, SVN1714 will not go into daemon mode. Running the compiled version under TRUSS (which provides a dump of every system call) and shows precisely where elog is failing. I have attached two TRUSS outputs: one where it errors out and the other where it runs but "interactively". Both runs are as root, simply one with and one without the "-D"


The "one where it errors out" does not look like an error. It does the "fork()" at the end and the main thread ends, that's how it's supposed to be.




Quote:
Ok, I got it. I've attached the TRUSS output where we follow the fork. It appears that elogd cannot open any of the specified files then gives up. What was throwing me is no error output, even to STDERR. When I run the same but without the -D flag the files are opened fine.

There are also strange system calls that differ, and I thought it might be due to the setuid(60001) -nobody- but the the non-daemn mode also sets to nobody and works fine.
Attachment 1: truss-daemon-1714.txt
sudo truss -f /sysadm/www/elog/elogd -f /var/run/cr-elogd.pid -c /sysadm/www/elog/cr-elogd.cfg -D 
16352:  execve("/sysadm/www/elog/elogd", 0xFFBEFACC, 0xFFBEFAE8)  argc = 6
16352:  resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
16352:  open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
16352:  stat("/usr/lib/libsocket.so.1", 0xFFBEF3F0)     = 0
16352:  open("/usr/lib/libsocket.so.1", O_RDONLY)       = 3
16352:  mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF390000
16352:  mmap(0x00000000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF370000
16352:  mmap(0xFF370000, 40558, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF370000
16352:  mmap(0xFF38A000, 4365, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 40960) = 0xFF38A000
16352:  munmap(0xFF37A000, 65536)                       = 0
16352:  memcntl(0xFF370000, 14496, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
16352:  close(3)                                        = 0
16352:  stat("/usr/lib/libnsl.so.1", 0xFFBEF3F0)        = 0
16352:  open("/usr/lib/libnsl.so.1", O_RDONLY)          = 3
16352:  mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
16352:  mmap(0x00000000, 712704, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF280000
16352:  mmap(0xFF280000, 580118, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000
16352:  mmap(0xFF31E000, 33184, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 581632) = 0xFF31E000
16352:  mmap(0xFF328000, 23240, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF328000
16352:  munmap(0xFF30E000, 65536)                       = 0
16352:  memcntl(0xFF280000, 83788, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
16352:  close(3)                                        = 0
16352:  stat("/usr/lib/libc.so.1", 0xFFBEF3F0)          = 0
16352:  open("/usr/lib/libc.so.1", O_RDONLY)            = 3
16352:  mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
16352:  mmap(0x00000000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF180000
16352:  mmap(0xFF180000, 702456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF180000
16352:  mmap(0xFF23C000, 24772, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF23C000
16352:  munmap(0xFF22C000, 65536)                       = 0
16352:  memcntl(0xFF180000, 113528, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
16352:  close(3)                                        = 0
16352:  stat("/usr/lib/libdl.so.1", 0xFFBEF3F0)         = 0
16352:  open("/usr/lib/libdl.so.1", O_RDONLY)           = 3
16352:  mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
16352:  mmap(0x00000000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF360000
16352:  mmap(0xFF360000, 2302, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF360000
16352:  close(3)                                        = 0
16352:  stat("/usr/lib/libmp.so.2", 0xFFBEF3F0)         = 0
16352:  open("/usr/lib/libmp.so.2", O_RDONLY)           = 3
16352:  mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
16352:  mmap(0x00000000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF340000
16352:  mmap(0xFF340000, 11316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF340000
16352:  mmap(0xFF354000, 865, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF354000
16352:  munmap(0xFF344000, 65536)                       = 0
16352:  mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF270000
16352:  memcntl(0xFF340000, 3124, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
16352:  close(3)                                        = 0
16352:  stat("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", 0xFFBEF1D8) = 0
16352:  open("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", O_RDONLY) = 3
16352:  mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
16352:  mmap(0xFF3A501C, 16384, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF260000
16352:  mmap(0xFF260000, 13800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF260000
16352:  close(3)                                        = 0
16352:  munmap(0xFF390000, 8192)                        = 0
16352:  getgid()                                        = 1 [1]
16352:  getuid()                                        = 0 [0]
16352:  time()                                          = 1158947397
16352:  brk(0x010E0A80)                                 = 0
16352:  brk(0x010E2A80)                                 = 0
16352:  open("/usr/share/lib/zoneinfo/US/Central", O_RDONLY) = 3
16352:  read(3, " T Z i f\0\0\0\0\0\0\0\0".., 8192)     = 1262
16352:  close(3)                                        = 0
16352:  open("/sysadm/www/elog/cr-elogd.cfg", O_RDONLY) = 3
16352:  close(3)                                        = 0
16352:  stat("/sysadm/www/elog/cr-elogd.cfg", 0xFFBEF1F8) = 0
16352:  brk(0x010E2A80)                                 = 0
16352:  brk(0x010E8A80)                                 = 0
16352:  open("/sysadm/www/elog/cr-elogd.cfg", O_RDONLY) = 3
16352:  lseek(3, 0, SEEK_END)                           = 21208
16352:  lseek(3, 0, SEEK_SET)                           = 0
16352:  brk(0x010E8A80)                                 = 0
16352:  brk(0x010ECA80)                                 = 0
16352:  read(3, " [ g l o b a l ]\n # # #".., 21208)    = 21208
16352:  close(3)                                        = 0
16352:  brk(0x010ECA80)                                 = 0
16352:  brk(0x010EEA80)                                 = 0
16352:  brk(0x010EEA80)                                 = 0
16352:  brk(0x010F0A80)                                 = 0
16352:  brk(0x010F0A80)                                 = 0
16352:  brk(0x010F2A80)                                 = 0
16352:  brk(0x010F2A80)                                 = 0
16352:  brk(0x010F4A80)                                 = 0
16352:  stat("/usr/lib/locale/english/english.so.2", 0xFFBEE2D8) Err#2 ENOENT
16352:  stat("resources/eloglang.", 0xFFBEEFE8)         Err#2 ENOENT
16352:  stat("crlogbooks", 0xFFBEF368)                  = 0
16352:  stat("/sysadm/www/elog", 0xFFBEF368)            = 0
16352:  brk(0x010F4A80)                                 = 0
16352:  brk(0x0110CA80)                                 = 0
16352:  brk(0x0110CA80)                                 = 0
16352:  brk(0x01124A80)                                 = 0
16352:  so_socket(2, 2, 0, "", 1)                       = 3
16352:  setsockopt(3, 65535, 4, 0xFFBC97D4, 4, 1)       = 0
16352:  bind(3, 0xFFBEF2B8, 16, 3)                      = 0
16352:  fstat(-1, 0xFFBC9528)                           Err#9 EBADF
16352:  open("/dev/conslog", O_WRONLY)                  = 4
16352:  fcntl(4, F_SETFD, 0x00000001)                   = 0
16352:  fstat(4, 0xFFBC9528)                            = 0
16352:  fork()                                          = 16353
16353:  fork()          (returning as child ...)        = 16352
16353:  close(0)                                        = 0
16353:  open("/dev/null", O_RDWR)                       = 0
16353:  close(1)                                        = 0
16353:  open("/dev/null", O_RDWR)                       = 1
16353:  close(2)                                        = 0
16353:  open("/dev/null", O_RDWR)                       = 2
16353:  setsid()                                        = 16353
16353:  chdir("/")                                      = 0
16353:  umask(0)                                        = 022
16353:  fstat(4, 0xFFBC92D8)                            = 0
16353:  time()                                          = 1158947397
16353:  getpid()                                        = 16353 [16352]
16353:  putmsg(4, 0xFFBC8990, 0xFFBC8984, 0)            = 0
16353:  open("/var/run/syslog_door", O_RDONLY)          = 5
16353:  door_info(5, 0xFFBC88C8)                        = 0
16353:  getpid()                                        = 16353 [16352]
16353:  door_call(5, 0xFFBC88B0)                        = 0
16353:  close(5)                                        = 0
16353:  fstat(4, 0xFFBC92D8)                            = 0
16353:  time()                                          = 1158947397
16353:  getpid()                                        = 16353 [16352]
16353:  putmsg(4, 0xFFBC8990, 0xFFBC8984, 0)            = 0
16353:  open("/var/run/syslog_door", O_RDONLY)          = 5
16353:  door_info(5, 0xFFBC88C8)                        = 0
16353:  getpid()                                        = 16353 [16352]
16353:  door_call(5, 0xFFBC88B0)                        = 0
16353:  close(5)                                        = 0
16353:  getuid()                                        = 0 [0]
16353:  stat("/var/run/cr-elogd.pid", 0xFFBC9690)       Err#2 ENOENT
16353:  open("/var/run/cr-elogd.pid", O_RDWR|O_CREAT, 0644) = 5
16353:  getpid()                                        = 16353 [16352]
16353:  write(5, " 1 6 3 5 3\n", 6)                     = 6
16353:  close(5)                                        = 0
16353:  sigaction(SIGTERM, 0xFFBC9560, 0xFFBC95E0)      = 0
16353:  sigaction(SIGINT, 0xFFBC9560, 0xFFBC95E0)       = 0
16353:  sigaction(SIGPIPE, 0xFFBC9560, 0xFFBC95E0)      = 0
16353:  sigaction(SIGHUP, 0xFFBC9560, 0xFFBC95E0)       = 0
16353:  getuid()                                        = 0 [0]
16353:  open64("/etc/.name_service_door", O_RDONLY)     = 5
16353:  fcntl(5, F_SETFD, 0x00000001)                   = 0
16353:  door_info(5, 0xFF242748)                        = 0
16353:  door_call(5, 0xFFBC74D8)                        = 0
16353:  setegid(14109)                                  = 0
16353:  sysconfig(_CONFIG_NGROUPS)                      = 16
16353:  open("/etc/default/nss", O_RDONLY)              = 6
16353:  fcntl(6, F_DUPFD, 0x00000100)                   Err#22 EINVAL
16353:  read(6, " #   i d e n t\t " @ ( #".., 1024)     = 754
16353:  read(6, 0x010E3B08, 1024)                       = 0
16353:  close(6)                                        = 0
16353:  open("/etc/nsswitch.conf", O_RDONLY)            = 6
16353:  fcntl(6, F_DUPFD, 0x00000100)                   Err#22 EINVAL
16353:  read(6, " #\n #   " h o s t s : "".., 1024)     = 1024
16353:  read(6, " s   n i s\n s e n d m a".., 1024)     = 126
16353:  read(6, 0x010E3B68, 1024)                       = 0
16353:  close(6)                                        = 0
16353:  stat("/usr/lib/nss_files.so.1", 0xFFBC8AF8)     = 0
16353:  open("/usr/lib/nss_files.so.1", O_RDONLY)       = 6
16353:  mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0xFF250000
16353:  mmap(0x00000000, 98304, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF160000
16353:  mmap(0xFF160000, 19978, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0xFF160000
16353:  mmap(0xFF176000, 1760, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 24576) = 0xFF176000
16353:  munmap(0xFF166000, 65536)                       = 0
16353:  memcntl(0xFF160000, 6884, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
16353:  close(6)                                        = 0
16353:  munmap(0xFF250000, 8192)                        = 0
16353:  open("/etc/group", O_RDONLY|O_LARGEFILE)        = 6
16353:  fcntl(6, F_DUPFD, 0x00000100)                   Err#22 EINVAL
16353:  read(6, " r o o t : : 0 : r o o t".., 1024)     = 278
16353:  read(6, 0x010E3BE0, 1024)                       = 0
16353:  close(6)                                        = 0
16353:  stat("/usr/lib/nss_nis.so.1", 0xFFBC8AF8)       = 0
16353:  open("/usr/lib/nss_nis.so.1", O_RDONLY)         = 6
16353:  mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0xFF250000
16353:  mmap(0x00000000, 98304, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF140000
16353:  mmap(0xFF140000, 22032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0xFF140000
16353:  mmap(0xFF156000, 1836, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 24576) = 0xFF156000
16353:  munmap(0xFF146000, 65536)                       = 0
16353:  memcntl(0xFF140000, 7460, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
16353:  close(6)                                        = 0
16353:  munmap(0xFF250000, 8192)                        = 0
16353:  sigfillset(0xFF2428D0)                          = 0
16353:  sysinfo(SI_SRPC_DOMAIN, "cde-tx32.sps.mot.com", 256) = 21
16353:  getpid()                                        = 16353 [16352]
16353:  open("/var/yp/binding/cde-tx32.sps.mot.com/cache_binding", O_RDONLY|O_LARGEFILE) = 6
16353:  fcntl(6, F_DUPFD, 0x00000100)                   Err#22 EINVAL
16353:  fcntl(6, F_GETLK, 0xFFBC87BC)                   = 0
16353:  read(6, "\0\0\001\0\0\001\0\0\001".., 1024)     = 144
16353:  close(6)                                        = 0
16353:  open("/dev/udp", O_RDWR)                        = 6
16353:  ioctl(6, I_FIND, "timod")                       = 0
16353:  ioctl(6, I_PUSH, "timod")                       = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC888C, 0xFFBC887C) = 0
16353:  ioctl(6, I_STR, 0xFFBC8700)                     = 0
16353:  fstat(6, 0xFFBC8688)                            = 0
16353:  ioctl(6, I_STR, 0xFFBC8700)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC887C, 0x00000000) = 0
16353:  ioctl(6, I_FLUSH, FLUSHRW)                      = 0
16353:  fstat(6, 0xFFBC86F0)                            = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8890, 0xFFBC8880) = 0
16353:  ioctl(6, I_STR, 0xFFBC87F8)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8880, 0x00000000) = 0
16353:  brk(0x01124A80)                                 = 0
16353:  brk(0x01132A80)                                 = 0
16353:  fstat(6, 0xFFBC8618)                            = 0
16353:  ioctl(6, I_STR, 0xFFBC8720)                     = 0
16353:  fstat(6, 0xFFBC8518)                            = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC86B8, 0xFFBC86A8) = 0
16353:  ioctl(6, I_STR, 0xFFBC8620)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC86A8, 0x00000000) = 0
16353:  brk(0x01132A80)                                 = 0
16353:  brk(0x01136A80)                                 = 0
16353:  getpid()                                        = 16353 [16352]
16353:  fstat(6, 0xFFBC85F0)                            = 0
16353:  ioctl(6, I_STR, 0xFFBC876C)                     = 0
16353:  brk(0x01136A80)                                 = 0
16353:  brk(0x01138A80)                                 = 0
16353:  fstat(6, 0xFFBC8894)                            = 0
16353:  fcntl(6, F_SETFD, 0x00000001)                   = 0
16353:  fstat(6, 0xFFBC8968)                            = 0
16353:  open("/etc/netconfig", O_RDONLY|O_LARGEFILE)    = 7
16353:  fcntl(7, F_DUPFD, 0x00000100)                   Err#22 EINVAL
16353:  read(7, " # p r a g m a   i d e n".., 1024)     = 1024
16353:  read(7, " t s           t p i _ c".., 1024)     = 215
16353:  read(7, 0x010EA2B0, 1024)                       = 0
16353:  lseek(7, 0, SEEK_SET)                           = 0
16353:  read(7, " # p r a g m a   i d e n".., 1024)     = 1024
16353:  read(7, " t s           t p i _ c".., 1024)     = 215
16353:  read(7, 0x010EA2B0, 1024)                       = 0
16353:  close(7)                                        = 0
16353:  open("/dev/udp", O_RDONLY)                      = 7
16353:  ioctl(7, 0xC00C6982, 0xFFBC8104)                = 0
16353:  close(7)                                        = 0
16353:  door_info(5, 0xFFBC6640)                        = 0
16353:  door_call(5, 0xFFBC6628)                        = 0
16353:  open("/dev/udp", O_RDWR)                        = 7
16353:  ioctl(7, I_FIND, "timod")                       = 0
16353:  ioctl(7, I_PUSH, "timod")                       = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8794, 0xFFBC8784) = 0
16353:  ioctl(7, I_STR, 0xFFBC8608)                     = 0
16353:  fstat(7, 0xFFBC8590)                            = 0
16353:  brk(0x01138A80)                                 = 0
16353:  brk(0x0113AA80)                                 = 0
16353:  brk(0x0113AA80)                                 = 0
16353:  brk(0x0113EA80)                                 = 0
16353:  ioctl(7, I_STR, 0xFFBC8608)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8784, 0x00000000) = 0
16353:  ioctl(7, I_FLUSH, FLUSHRW)                      = 0
16353:  fstat(7, 0xFFBC85F8)                            = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8798, 0xFFBC8788) = 0
16353:  ioctl(7, I_STR, 0xFFBC8700)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8788, 0x00000000) = 0
16353:  fstat(7, 0xFFBC8520)                            = 0
16353:  ioctl(7, I_STR, 0xFFBC8628)                     = 0
16353:  fstat(7, 0xFFBC8420)                            = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC85C0, 0xFFBC85B0) = 0
16353:  ioctl(7, I_STR, 0xFFBC8528)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC85B0, 0x00000000) = 0
16353:  brk(0x0113EA80)                                 = 0
16353:  brk(0x0115EA80)                                 = 0
16353:  getpid()                                        = 16353 [16352]
16353:  fstat(7, 0xFFBC84F8)                            = 0
16353:  ioctl(7, I_STR, 0xFFBC8674)                     = 0
16353:  brk(0x0115EA80)                                 = 0
16353:  brk(0x01160A80)                                 = 0
16353:  time()                                          = 1158947397
16353:  fstat(7, 0xFFBC85B0)                            = 0
16353:  putmsg(7, 0xFFBC874C, 0xFFBC8864, 0)            = 0
16353:  poll(0x0113CF9C, 1, 15000)                      = 1
16353:  fstat(7, 0xFFBC85A8)                            = 0
16353:  getmsg(7, 0xFFBC8748, 0x010E4360, 0xFFBC8774)   = 0
16353:  fstat(7, 0xFFBC8688)                            = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8810, 0xFFBC8800) = 0
16353:  close(7)                                        = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8800, 0x00000000) = 0
16353:  open("/dev/tcp", O_RDWR)                        = 7
16353:  ioctl(7, I_FIND, "timod")                       = 0
16353:  ioctl(7, I_PUSH, "timod")                       = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC88D4, 0xFFBC88C4) = 0
16353:  ioctl(7, I_STR, 0xFFBC8748)                     = 0
16353:  fstat(7, 0xFFBC86D0)                            = 0
16353:  ioctl(7, I_STR, 0xFFBC8748)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC88C4, 0x00000000) = 0
16353:  ioctl(7, I_FLUSH, FLUSHRW)                      = 0
16353:  fstat(7, 0xFFBC8738)                            = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC88D8, 0xFFBC88C8) = 0
16353:  ioctl(7, I_STR, 0xFFBC8840)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC88C8, 0x00000000) = 0
16353:  fstat(7, 0xFFBC8708)                            = 0
16353:  fstat(7, 0xFFBC86D0)                            = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8870, 0xFFBC8860) = 0
16353:  ioctl(7, I_STR, 0xFFBC87D8)                     = 0
16353:  sigprocmask(SIG_SETMASK, 0xFFBC8860, 0x00000000) = 0
16353:  fcntl(7, F_GETFL, 0x00000000)                   = 2
16353:  fstat64(7, 0xFFBC8708)                          = 0
16353:  fstat(7, 0xFFBC8610)                            = 0
16353:  fstat(7, 0xFFBC85B0)                            = 0
16353:  ioctl(7, I_STR, 0xFFBC872C)                     = 0
16353:  fstat(7, 0xFFBC85D0)                            = 0
16353:  sigprocmask(SIG_BLOCK, 0xFFBC86D8, 0xFFBC8748)  = 0
16353:  ioctl(7, I_NREAD, 0xFFBC8684)                   = 0
... 1591 more lines ...
  1958   Mon Sep 25 18:23:54 2006 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux2.6.1Re: Invalid addresses block email notifications

Dimitrios Tsirigkas wrote:
Hi Stefan,

We have had problems with some users who subscribe for elog notifications using fake email addresses. When this happens, e-mail notifications stop working for all users and I have to find out which is the problematic email address and fix it myself. Is this a known problem? Is there a fix in a version newer than 2.6.1?

Thanks,
Dimitris


Hi Dimitris,

in fact I have the same problem here with the forum. So far I did not find a clever solution, but I have some thought on how to minimize it:

  • Do the self registration by sending a key to the registered email address. Only by using that key the account can be activated. This way at least on ensures a proper email address initially. There are however ways to temporaryly generate email accounts, which kind of bypasses this system. Furthermore, if an email address becomes invalid because the domain is switched off, this does not help.
  • Email at least an error notification to the admin in case of failure.

You would say "why not removing the invalid email address"? Well that's kind of hard, since I send the email notification to all recipients in one email. Therefor I cannot figure out which is the offending email address. If I would send the emails separately to everyone, this can easily take minutes, which in turn would block the email server for that time. A solution would be a multithreaded server, which in fact is planned, but will not come so soon. If you come up with another clever solution please let me know.
  1959   Mon Sep 25 21:09:58 2006 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows2.6.2Re: Entry Submission Help

kcmin wrote:
1. When an entry is submitted is it possible to have it return to the submit page instead of a summary of the entry. In the ELog.cfg syntax on the site it mentions something about this. However It says something about a file being present in the resource directory. I am not sure what to do here.


You can hand-write a HTML file which gets displayed after submission, but that's probably not what you want. Unfortunately there is no option to go back to the submit page, so you have to click New again. If you want to enter a bulk of data, you can also do a CSV import. Maybe that's easier for you. Just write a comma-separated-value file, and import it via "CSV Import".


kcmin wrote:
2. When you submit an entry is it possible for the fields to stay set to the value that was selected on submission of the last entry. You would need to still be able to change them though.


The Duplicate command was made for that. Just select an entry which is close to your new one (might be the last one entered), and click Duplicate. This gets you to what you want.
  67   Thu Jul 11 10:36:09 2002 Reply Stefan Rittstefan.ritt@psi.chBug fix  Re: a bug and a question
>    If you have only one entry in the logbook and have it set up in threaded 
> mode like: ?cmd=Search&mode=threaded&reverse=1, when you click on the icon 
> of the entry or the number of the entry to see it, it does not allow you 
> to.  If there is more than one entry, it works fine.  

Ok, has been fixed. Will come in 2.0.5

>    Also I wanted to make a submit page from where you could either go back 
> to the logbook which you just entered a message for or type a new entry for 
> that logbook.  First of all, is there a way to have only one file called 
> submitpage.html in which I can define this for all logbooks or do i need it 
> for ever logbook.  And also, is there a way I can even set a link that will 
> allow to create a new entry.  I tried: 
>     <a href="demo/?cmd=new">Enter</a> another message<p>
> 
> but for some reason it does not work.  Is there a way to implement this?

The documentation was wrong about that which has been corrected. The proper 
file contents should be

<h1>You successfully submitted a message</h1>
<a href="?cmd=Back">Back</a> to the logbook<p>
<a href="?cmd=New">Enter</a> another message

This way one only needs one file for all logbooks.
ELOG V3.1.5-3fb85fa6