05-03-2002
No comparrison
There is currently no comparrison for Bash and Python!!! Will post my report on my web site in a few days.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hey all!
i'm looking how to render verbose python scripts.
what i'm looking for would be an equivalent to a "bash -xf" in bash script headers..
Any help? (2 Replies)
Discussion started by: penguin-friend
2 Replies
2. Programming
Hello,
Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
Example:
>>> import subprocess
>>> help(subprocess)
...
...
I'm hoping so as I hate scrolling and love how less works with... (0 Replies)
Discussion started by: Narnie
0 Replies
3. Shell Programming and Scripting
Hi all,
I need help figuring out why my script won't work when envoked from web interface. First off, I'm fairly new to Linux and Shell scripting so, my apologies for being ignorant!
So I have a python script that I envoke through a web interface. This script envokes my shell script and... (8 Replies)
Discussion started by: arod291
8 Replies
4. Shell Programming and Scripting
Hi,
I am trying to run a python script embedded in bash script. But is throwing me an error. Please help.
Script:
#!/bin/bash
nohup /usr/bin/python /opt/web/http.py &
Error:
/usr/bin/python: can't open file '/opt/web/http.py': No such file or directory
Please help me on this. (6 Replies)
Discussion started by: maddy26615
6 Replies
5. Shell Programming and Scripting
I have 2 files generated in linux that has common output and were produced across multiple hosts with the same setup/configs. These files do some simple reporting on resource allocation and user sessions. So, essentially, say, 10 hosts, with the same (2) system reporting in the files, so a... (0 Replies)
Discussion started by: jdubbz
0 Replies
6. Shell Programming and Scripting
Heyas
I've been working on my project TUI (Text User Interface) for quite some time now, its a hobby project, so nothing i sit in front of 8hrs/day.
Since the only 'real' programming language i knw is Visual Basic, based upon early steps with MS-Batch files. When i 'joined' linux 3 years ago,... (7 Replies)
Discussion started by: sea
7 Replies
7. Shell Programming and Scripting
Hi everyone,
i have the following script.sh:
foo='lsusb | grep Webcam | cut -c16-18'
sudo /home/user/public/usbreset /dev/bus/usb/001/$foo
when i try to call this script from python using subprocess.call("script.sh", shell=True) it seems that only 'sudo /home/user/public/usbreset' is being... (6 Replies)
Discussion started by: hilfemir
6 Replies
8. Shell Programming and Scripting
I have a bash shell script, within it i am using the below two commands . its failing right on scl enable command itself.
if i run it by itself without a shell, it works fine.
by default it is using pythin version 2.6 something. i want to use 3.4 version for that reason with in the shell... (3 Replies)
Discussion started by: cplusplus1
3 Replies
9. Shell Programming and Scripting
On our server default python version is 2.6, how to enable rh-python34 via bash shell.
Thanks a lot for the helpful info. (7 Replies)
Discussion started by: cplusplus1
7 Replies
10. Shell Programming and Scripting
How can I pass bash Variable to python script.
bash.sh
while read -r db
do
Printf "%s\n" ${db} "Found"
done < path/to/file.txt
file.txt
db1
db2
db3
python.py
print(${db}_tables.replicate.fix) (2 Replies)
Discussion started by: lpoolfc
2 Replies
LEARN ABOUT DEBIAN
virtualenv
VIRTUALENV(1) VIRTUALENV(1)
NAME
virtualenv - create virtual Python instances
SYNOPSIS
virtualenv [options...] [destination-directory]
DESCRIPTION
virtualenv creates virtual Python executables, each of which can have its own set of installed modules. Programs that require different
versions of modules or sets of modules that may be incompatible with others to be installed on the same system without conflicts.
The result is a directory containing its own Python executables (in DIR/bin/pythonVER and DIR/bin/python) and its own module directory
containing the standard library as installed by the system. Additional modules may be installed via setuptools, as invoked from the binary
directory (DIR/bin/easy_install). The system's site-packages directories will not be available by default, but can be made visible with the
--system-site-packages option. They can then be overridden with locally-installed modules.
In addition, a shell script called "activate" will be installed in the bin directory. If sourced, this will cause normal invocations of the
Python executable to use the virtual environment.
By running the virtualenv command explicitly under the desired Python interpreter, the user can control which version of Python is created
in the virtual environment.
OPTIONS
-h, --help
Show summary of options.
--version
Show the version of the program.
-v, --verbose
Be more verbose.
-q, --quiet
Be less verbose; suppress unimportant output.
--clear
Clear out a previously-created virtual Python instance in this location before creating a new one.
-p PYTHON_EXE,--python=PYTHON_EXE
The Python interpreter to use to create the new environment.
--no-site-packages
Ignored (the default). Don't give access to the global site-packages modules to the virtual environment.
--system-site-packages
Give access to the global site-packages modules to the virtual environment.
--unzip-setuptools
Unzip Setuptools or Distribute when installing it.
--relocatable
Make an EXISTING virtualenv environment relocatable.
--distribute
Ignored. Distribute is used by default. See --setuptools to use Setuptools instead of Distribute.
--setuptools
Use Setuptools instead of Distribute. Set environ variable VIRTUALENV_SETUPTOOLS to make it the default.
--extra-search-dir=SEARCH_DIRS
Directory to search for setuptools/distribute/pip distributions in. Can be specified multiple times.
--never-download
Never download anything from the network. Instead, fail if local distributions of setuptools/distribute/pip are not present.
--prompt==PROMPT
Provides an alternative prompt prefix for this environment.
AUTHORS
This manual page was originally written by Jeff Licquia <licquia@debian.org>, later rewritten by Carl Chenet <chaica@ohmytux.com>.
LICENSE
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 2 or any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
COPYRIGHT
Copyright (C) 2007 Jeff Licquia
12/02/2009 VIRTUALENV(1)