Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-core
Commits
13ac611a
Commit
13ac611a
authored
Jun 21, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed a number of exec calls to im_exec
parent
e11b206d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
index-demo-product.adp
preconf/index-demo-product.adp
+2
-2
index.adp
preconf/index.adp
+2
-2
index.nohelp.adp
preconf/index.nohelp.adp
+2
-2
upload-2.tcl
www/users/portrait/upload-2.tcl
+1
-1
No files found.
preconf/index-demo-product.adp
View file @
13ac611a
...
...
@@ -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"
...
...
preconf/index.adp
View file @
13ac611a
...
...
@@ -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"
...
...
preconf/index.nohelp.adp
View file @
13ac611a
...
...
@@ -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"
...
...
www/users/portrait/upload-2.tcl
View file @
13ac611a
...
...
@@ -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
]
}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment