Skip to content Skip to sidebar Skip to footer
Showing posts with the label Shell

Flask Shell Commands Not Working

I'm new to python and flask and currently working on the Flask Mega-Tutorial, however: I'm … Read more Flask Shell Commands Not Working

Php Exec Python Not Working

hey yall. Im running python on a webserver from dreamhost. I am using their install of python and… Read more Php Exec Python Not Working

Force Subprocess To Use Python 3

So, I was trying to write a Python script that utilized subprocess to call another Python script in… Read more Force Subprocess To Use Python 3

Conda Not Working Correctly With Fish Shell

When using conda environments inside the fish shell on macOS, python still points to system python … Read more Conda Not Working Correctly With Fish Shell

Permissionerror When Downloading Nltk Data

I use Anaconda's Python 3.6.3 distribution and it comes with NLTK installed, but not with NLTK … Read more Permissionerror When Downloading Nltk Data

How To Use Python To Start An Interactive Shell Program?

I have used python subprocess and os module for a while. Now I want to start an interactive C++ pro… Read more How To Use Python To Start An Interactive Shell Program?

How To Make Shell Output Redirect (>) Write While Script Is Still Running?

I wrote a short script that never terminates. This script continuously generates output that I have… Read more How To Make Shell Output Redirect (>) Write While Script Is Still Running?

Python - Open New Shell And Run Command

At the moment I am running a bash command from within Python using the following method: os.system(… Read more Python - Open New Shell And Run Command

Python3 - Cd Is Not Working In Reverse Shell

This is in python 3. I'm trying to command cd from my server to the reverse shell, but it just … Read more Python3 - Cd Is Not Working In Reverse Shell

Emacs And Python Environment

I have a local Python installation in //anaconda/bin/python In the command prompt $python >>i… Read more Emacs And Python Environment

Run Ipython In A Script

I am trying to do some scripting with IPython, but I am finding that it behaves very differently in… Read more Run Ipython In A Script

How Can I Properly Quote Bash Commands In Python When Using `subprocess.check_output`?

I'm trying to run and read the output of time command in python. The problem is that time comma… Read more How Can I Properly Quote Bash Commands In Python When Using `subprocess.check_output`?

Whenever I Run A Program In Python Shell I Get A Line That Says Restart: C:\... $

Whenever I run a program in Python Shell I get a line that says RESTART: C:\... $. Restarting the p… Read more Whenever I Run A Program In Python Shell I Get A Line That Says Restart: C:\... $

Script Runs Fine In Terminal But Not From Launchd

My Python script runs fine in the terminal but when I try to set it up to run once a day at a certa… Read more Script Runs Fine In Terminal But Not From Launchd

Printing Output From Console Live To Qtextedit

so I am trying to (live) update a QTextEdit with shell output as such: txtDirb = QTextEdit() dirb_c… Read more Printing Output From Console Live To Qtextedit

Dramatic Slow-down When Executing Multiple Processes At The Same Time

I write a very simple code which contains summation of arrays by using both Fortran and Python. Whe… Read more Dramatic Slow-down When Executing Multiple Processes At The Same Time

Shell: Prompt User To Enter A Directory Path

I'm looking for a Bash equivalent of Python's os.path.join. I'm trying to prompt the us… Read more Shell: Prompt User To Enter A Directory Path

List Of Methods For Python Shell?

You'd have already found out by my usage of terminology that I'm a python n00b. straight fo… Read more List Of Methods For Python Shell?

How To Deal With Python Basehttpserver Killed,but The Port Is Still Be Occupied?

I use python BaseHTTPServer,it can handle do_GET,do_POST methods,in do_POST method,i execute linux … Read more How To Deal With Python Basehttpserver Killed,but The Port Is Still Be Occupied?

Python Subprocess Argument With Equal Sign And Space

I am trying to run a command with subprocess.check_output without using shell=True keyword argument… Read more Python Subprocess Argument With Equal Sign And Space