Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
438a74ee
Commit
438a74ee
authored
Apr 30, 2015
by
Mikaël Salson
Committed by
Vidjil Team
Apr 30, 2015
Browse files
web2py/scripts: Shell script to launch web2py scripts (with parameters, if needed)
parent
1665a445
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/scripts/launch_python_script.sh
0 → 100755
View file @
438a74ee
#!/bin/sh
if
[
$#
-eq
0
-o
"
$1
"
==
"-h"
-o
"
$1
"
==
"--help"
]
;
then
echo
"Usage:
$0
<python script>
Launches the python script (just indicate the basename, the script
must be put in the script directory)"
exit
1
fi
script_name
=
$1
shift
sudo
-u
www-data python ../../../web2py.py
-S
vidjil
-M
-R
"applications/vidjil/scripts/
$script_name
"
-A
$*
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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