Artifacts Associated With Ticket 218180
Ticket change [c3549bf1c5] (rid 111639) by nobody on 2000-10-26 00:54:12:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2331 Bug Version: 8.1 SubmitDate: '1999-07-06' LastModified: '1999-12-03' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Solaris OSVersion: SunOS iplannet 5.5.1 Generic_103640-12 sun4u sparc SUNW,Ultra-2 Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-12-03' Name: Alberto Franco de Sa Ribeiro Extensions: scotty CustomShell: tcl core configured with --prefix=/opt/SCRtcl ReproducibleScript: When I start a daemon (PostgreSQL) on a script file, it never finish. The same exec works when I try to use in a interactive shell. My script: #!/opt/SCRtcl/bin/tclsh set env(PGLIB) /opt/PostgreSQL/lib set env(PGDATA) /opt/PostgreSQL/data switch -exact [lindex $argv 0] { start { if {! [catch { exec su pgsql -c "/opt/PostgreSQL/bin/postmaster -b /opt/PostgreSQL/bin/postgres -D /opt/PostgreSQL/data -S -o -e" }]} { puts "PostgreSQL iniciado corretamente" } else { puts "Falha na inicializacao do PostgreSQL" } # Bug do tcl: processos em background impedem shell de terminar exec kill -HUP [pid] } stop { if [catch {set l1 [split [exec /usr/ucb/ps -aux | /usr/bin/grep "^pgsql"] \n]}] { puts "Nao foi encontrado nenhum processo do usuario pgsql" } else { foreach l $l1 { set pid [lindex [split $l] 5] if {! [catch {exec kill -INT $pid}]} { puts "Enviado sinal INT ao pid $pid" } } } } default { puts "utilize: $argv0 (start|stop)" } } # end of script PS: tkined is also not finishing. DesiredBehavior: scripts finishing when there are no more commands The user should verify that the same commands are really being called. In an interactive shell, the 'unknown' command will kick in when something is not recognized. The behavior is different in a standard script. -- 12/03/1999 hobbs - foundin initialized to: "obsolete: 8.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "60. NRE and coroutines"
- title initialized to: "bug on exec command"
- type initialized to: "Bug"
Ticket change [d0857d3c6d] (rid 113198) by welch on 2000-10-26 08:16:55:
- closedate changed to: "2000-10-26T01:16:55"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [e6c8eac940] (rid 104350) by dgp on 2001-04-05 08:20:14:
- closedate changed to: "2001-04-05T01:20:14"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"