473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

os.startfile() en linux

quien me puede decir cual es el homólogo de os.startfile() en linux????
Mar 12 '07 #1
5 5140
DeMan
1,806 1GB
Hi and welcome to the scripts,

I think you'll find that the experts in the Linux/Unix forum (Right Hand Side of the screen, near the bottom), would be your best port of call......
Mar 12 '07 #2
AricC
1,892 Expert 1GB
quien me puede decir cual es el homólogo de os.startfile() en linux????
Welcome ecuesta18 you may have better luck down in the Linux forum if you can post in English I'm not sure if the experts know Spanish.
Mar 12 '07 #3
bartonc
6,596 Expert 4TB
Welcome ecuesta18 you may have better luck down in the Linux forum if you can post in English I'm not sure if the experts know Spanish.
This is actually a Python question. Let's see if we can break the language barrier here... What do you say guys?
[Moved from Member Intro Forum]
Mar 13 '07 #4
bartonc
6,596 Expert 4TB
quien me puede decir cual es el homólogo de os.startfile() en linux????
diveintopython.org
Python para programadores con experiencia


Inmersión en Python es un libro libre sobre Python para programadores con experiencia. Se puede leer el libro en línea, o descargarlo en diversos formatos.

Leer Inmersión en Python
Este libro y sus traducciones están siendo escritos aún. En esta traducción se han finalizado los dos primeros capítulos, que junto con el tercero suponen una sólida visión de conjunto de la programación en Python. Conforme avance la traducción irán publicándose capítulos nuevos. Puede leerse el historial de revisiones para ver los cambios.Updated 17 de septiembre de 2001

aqui
Mar 13 '07 #5
bartonc
6,596 Expert 4TB
quien me puede decir cual es el homólogo de os.startfile() en linux????
startfile() returns as soon as the associated application is launched. There is no option to wait for the application to close, and no way to retrieve the application's exit status. The path parameter is relative to the current directory. If you want to use an absolute path, make sure the first character is not a slash ("/"); the underlying Win32 ShellExecute() function doesn't work if it is. Use the os.path.normpath() function to ensure that the path is properly encoded for Win32. Availability: Windows. New in version 2.0.


system( command)

Execute the command (a string) in a subshell. This is implemented by calling the Standard C function system(), and has the same limitations. Changes to posix.environ, sys.stdin, etc. are not reflected in the environment of the executed command.
On Unix, the return value is the exit status of the process encoded in the format specified for wait(). Note that POSIX does not specify the meaning of the return value of the C system() function, so the return value of the Python function is system-dependent.
Mar 13 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jhuola Hoptire | last post by:
Just installed J2RE 1.4.2 on a Linux server. I am very knew to the POSIX world. I couldn't dig-up much in the docs or via google about the following: 1 - Is there a standard way to make sure...
2
by: Matthias Huening | last post by:
Hi, os.startfile('http://www.python.org') works fine on WinXP with IE as default webbrowser. With Mozilla Firefox 0.9 as default webbrowser, however, I get an error. Firefox starts, the page...
6
by: Timothy Smith | last post by:
hello i have a very odd issue with os.startfile() ok basicly my app works perfectly on every single other pc todate. i cannot recreate this issue on any system. so i've already ruled out any...
2
by: dcrespo | last post by:
Hi to all, How can I get the Process ID (PID) of an application started because of os.startfile(filename)? Or, better, How can I get the PID of a running program, suposing I know the name of...
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
3
by: BartlebyScrivener | last post by:
Can any Windows user give a working example of adding a "command verb" to os.startfile()? When I try it, it squawks that it takes only one argument. >>> os.startfile('d:/','explore')...
2
by: dazzler | last post by:
I need to open PDF file with my python application, and I'm using os.startfile(filename.pdf) command, I would need open command act 100% like clicking the file in the windows explorer python...
1
by: Alexnb | last post by:
So i have a mac and pc, and just found out that os.startfile() doesn't work on a mac. So is there anything like that besides os.system()? -- View this message in context:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.