Hello.
I was thinking about writing a UNIX shell program using Python. Has
anyone got any experience on this? Is it even possible? I have
programmed a simple shell in C before and I came to think about how
perfect Python would be for parsing user input.
Regards,
Deniz Dogan 3 1775
Deniz Dogan wrote:
Hello.
I was thinking about writing a UNIX shell program using Python. Has
anyone got any experience on this? Is it even possible? I have
programmed a simple shell in C before and I came to think about how
perfect Python would be for parsing user input.
Regards,
Deniz Dogan
Not only *can* it be done, but it *has* been done and well: See IPython at: http://ipython.scipy.org/moin/
Gary Herron
On Feb 9, 8:49 am, Deniz Dogan <kristn...@nosp am.comwrote:
Hello.
I was thinking about writing a UNIX shell program using Python. Has
anyone got any experience on this? Is it even possible?
Use the Google, Luke. http://sourceforge.net/projects/pyshell/
Bart Ogryczak wrote:
On Feb 9, 8:49 am, Deniz Dogan <kristn...@nosp am.comwrote:
>Hello.
I was thinking about writing a UNIX shell program using Python. Has anyone got any experience on this? Is it even possible?
Use the Google, Luke. http://sourceforge.net/projects/pyshell/
Have patience, young padawan. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Neale |
last post by:
In a python program, I want to do a Unix directory list and then
append selected files to each other which, as you know, is just "cat
filename2 >> filename1." How do I escape into the shell and then
return, bringing with me a directory list?
Where can I find some examples of mixing shell commands and Python?
|
by: Kory Wheatley |
last post by:
Hi all,
I've just started to learn Python and I have a
question.
What is the syntax to embed Unix commands, or call
other programs within a Python script?
for example I would like to use a system chmod unix
command in the python script:
|
by: Kotlin Sam |
last post by:
For a while at least I have to work in Windows rather than UNIX, which
is more familiar. I'm trying to do with Python some of the things that
I've done for years in shell, in particular, sort. The shell sort is
pretty easy to use:
% sort -t, +2 +5 imputfilename <return>
where -t is the field separator, in this case a comma, , and +2 and
+4 are the fields to be sorted, in that order. Actually, the fields are
zero-based, so the first and...
|
by: rkoida |
last post by:
Hello evryone
I am a newbie to python. I have a makefile which i can compile in
UNIX/LINUX, But i
I am planning to write a python script which actually does what my
MAKEFILE does. The make file is
#Makefile and some scripts to give output
#numbers
#Change till sign #END
|
by: timdoyle05 |
last post by:
Hi,
I have a question relating to how Unix commands can be issued from
Python programs. Im am currently writing a large test script in python
and I need this script to call three other separate Python scripts,
where each one executes in it own thread of control. I would like to
use a Unix command to get each script to run in its own shell. I have
tried using the "Commands" module but after I issue the
first "command", execution blocks...
| |
by: Ryan M |
last post by:
I've been programming for a while, but most of my experience is on unix.
How do C compilers work on operating systems that weren't written in C?
And that have no libc?
Compiling C on unix seems so easy. Everything in the code either goes
right to machine code, or links to a C library (often libc) or links to
the kernel. Are there libc equivalents on non-unix OSes?
--
Using M2, Opera's revolutionary e-mail client:...
|
by: tfoxusenet |
last post by:
Hi, I need to encrypt/decrypt some data for my C# application that can
also be read on a unix system, and need a quick, simple, cross-platform
solution I can embed in my own code that doesn't require dependencies
on outside applications.
I don't know much about encryption. What I would like to do is come up
with an encryption/decryption code that will work with my C#/.NET
framework windows code (there are a number of cryptographic...
|
by: Tom Gur |
last post by:
Hi,
It's seems that csh and tcsh acts a bit different when handling
special characters in quotes.
i.e: if i'll supply my program with the following arguments: -winpath
"c:\\temp\\"
tcsh will take it as -winpath "c:\temp\"
and csh will take it literally (with the double-slashes).
Is there a way for me to know what shell is currently running my
|
by: p.lavarre |
last post by:
http://wiki.python.org/moin/glob now mentions:
The glob module lists names in folders that match Unix shell patterns.
If the elemental function emulating Unix bash `echo *` really is
missing from the 2.5 Python batteries included, then here's a brief
clear way of adding that function to Python.
Mind you, to date I've never written an elemental function for Python
that I haven't eventually found well-buried somewhere, e.g.,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |