Python Forum
I am a newbie I like to use the command line
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am a newbie I like to use the command line
#1
Hello community

I am new to python.
I have a very simple question:
I am a professional and testing python on a Cooperate Laptop which is clearly limited.
Most information I found on the internet are all based on people with Admin rights on their machine.
That is fine and so simple if I like to run a python script: WOW

But if I like to run a script in the command line from Phyton.exe it is not simple.
So I like to know if Python is only for the geeks or a language where creativity and good ideas can be used?

My simple question is, is it possible to run a script in the command line by using a path without the ENV variables like PATH in Windows? I am limited by the Corporate rules and that is good as we have sensitive data to manage.
But I am surprised how complex it could go if I try to run a script IN the command line of python...

It is possible to run the script by Windows CMD like python C:\willi\myScripts\runme.py that is fine. Thanks for that.

But I like to utilize the command line without pip for testing purpose.
I am using a lot PowerShell or on Linux BASH & C-Shell.

So I hope, with all expertise on that python forum here, to find a simple solution for running scripts in the command line.
Sorry for any inconvenience caused by my simple question working in a Corporate environment.

Thanks in advance for any support to simplify my testing.
Python is a very interesting language so it would be nice to test it in my environment.

Cheers
Michael Damaschke
Reply
#2
(Jun-13-2025, 12:32 PM)Mikel2025 Wrote: I am using a lot PowerShell or on Linux BASH & C-Shell.
I don't know the answer in Windows, but in Linux you can simply use
Output:
python runme.py
on the command line.
« We can solve any problem by introducing an extra level of indirection »
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Insert command line in script lif 4 2,200 Mar-24-2025, 10:30 PM
Last Post: lif
  Simplest way to run external command line app with parameters? Winfried 2 2,359 Aug-19-2024, 03:11 PM
Last Post: snippsat
  Command line argument issue space issue mg24 5 3,166 Oct-26-2022, 11:05 PM
Last Post: Yoriz
  accept command line argument mg24 5 3,140 Sep-27-2022, 05:58 PM
Last Post: snippsat
  Accessing varying command line arguements Rakshan 3 3,741 Jul-28-2021, 03:18 PM
Last Post: snippsat
  How to input & output parameters from command line argument shantanu97 1 4,791 Apr-13-2021, 02:12 PM
Last Post: Larz60+
  Passing List of Objects in Command Line Python usman 7 5,817 Sep-27-2020, 03:45 PM
Last Post: ndc85430
  Taking Multiple Command Line Argument Input bwdu 6 10,151 Mar-29-2020, 05:52 PM
Last Post: buran
  python 3 from command line Dixon 1 3,021 Mar-01-2020, 08:35 PM
Last Post: snippsat
  Running linux command line apps... dbrdh 0 2,700 Jan-30-2020, 01:14 PM
Last Post: dbrdh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020