Commit 13ac611a authored by Frank Bergmann's avatar Frank Bergmann

- Fixed a number of exec calls to im_exec

parent e11b206d
......@@ -6,10 +6,10 @@
<%=
# Gather some information about the current system
set ip_address "undefined"
catch {set ip_address [exec /bin/bash -c "/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'"]} ip_address
catch {set ip_address [im_exec bash -c "/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'"]} ip_address
set total_memory "undefined"
catch {set total_memory [expr [exec /bin/bash -c "grep MemTotal /proc/meminfo | awk '{print \$2}'"] / 1024]} total_memory
catch {set total_memory [expr [im_exec bash -c "grep MemTotal /proc/meminfo | awk '{print \$2}'"] / 1024]} total_memory
set url "<a href=\"http://$ip_address/\" target=_new>http://$ip_address/</a>\n"
......
......@@ -6,10 +6,10 @@
<%=
# Gather some information about the current system
set ip_address "undefined"
catch {set ip_address [exec /bin/bash -c "/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'"]} ip_address
catch {set ip_address [im_exec /bin/bash -c "/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'"]} ip_address
set total_memory "undefined"
catch {set total_memory [expr [exec /bin/bash -c "grep MemTotal /proc/meminfo | awk '{print \$2}'"] / 1024]} total_memory
catch {set total_memory [expr [im_exec /bin/bash -c "grep MemTotal /proc/meminfo | awk '{print \$2}'"] / 1024]} total_memory
set url "<a href=\"http://$ip_address/\" target=_new>http://$ip_address/</a>\n"
......
......@@ -6,10 +6,10 @@
<%=
# Gather some information about the current system
set ip_address "undefined"
catch {set ip_address [exec /bin/bash -c "/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'"]} ip_address
catch {set ip_address [im_exec bash -c "/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'"]} ip_address
set total_memory "undefined"
catch {set total_memory [expr [exec /bin/bash -c "grep MemTotal /proc/meminfo | awk '{print \$2}'"] / 1024]} total_memory
catch {set total_memory [expr [im_exec bash -c "grep MemTotal /proc/meminfo | awk '{print \$2}'"] / 1024]} total_memory
set url "<a href=\"http://$ip_address/\" target=_new>http://$ip_address/</a>\n"
......
......@@ -101,7 +101,7 @@ if { [catch {
foreach file $file_list {
if {[regexp {portrait} $file match]} {
ns_log Notice "portraits/upload-2: /bin/rm $file"
im_exec /bin/rm $file
im_exec rm $file
}
}
} err_msg] } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment