Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scripts
#1
is there anyone else, besides Skaperen, that write their various general purpose command line scripts in Python?   in Python3?  on Linux?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
I don't know what is the meaning of the "general purpose" but when I need something and I am able to do it, I write command line scripts. On Linux.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
(Apr-03-2017, 02:57 AM)Skaperen Wrote: is there anyone else, besides Skaperen, that write their various general purpose command line scripts in Python?   in Python3?  on Linux?

python or bash, depending on the ratio new logic/available utilities.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply
#4
(Apr-03-2017, 02:57 AM)Skaperen Wrote: is there anyone else, besides Skaperen, that write their various general purpose command line scripts in Python?   in Python3?  on Linux?

I write every general purpose script in python for terminal, in linux. Its too much extra coding for GUI. I even taught my wife, a complete computer illiterate, how to run my programs and give various args to run programs i made for her.
Recommended Tutorials:
Reply
#5
(Apr-03-2017, 04:25 AM)wavic Wrote: I don't know what is the meaning of the "general purpose" but when I need something and I am able to do it, I write command line scripts. On Linux.

perhaps "various purpose" would be more accurate.  purposes not specific to python itself.

do you write them in python?  if so, which version of python?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#6
(Apr-04-2017, 12:02 AM)Skaperen Wrote:
(Apr-03-2017, 04:25 AM)wavic Wrote: I don't know what is the meaning of the "general purpose" but when I need something and I am able to do it, I write command line scripts. On Linux.

perhaps "various purpose" would be more accurate.  purposes not specific to python itself.

do you write them in python?  if so, which version of python?

Mostly. It turns out that I am more Python aware than bash, zsh, or fish. I don't like this situation and have to catch up with the shell scripting too. So I prefer Python scripts for now. Should not be any difference since Python comes with any Linux installation. Almost any. 

Python 3. There are new toys to play with. Like asyncio for example. I do not get it yet but I have to. And much more. It offers more.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#7
i was at the verge of looking at asyncio in C when i began to shift my coding time to Python.  it looks similar to the I/O model of a utility OS i was designing for mainframes.  one big difference was the API in my design was based on Assembly Language 370. i had not caught on to portability, yet, at that time.

i want to get away from bash.  one thing i like about python is the ability to work on the OS directly (syscalls or approximations of then).  one of my big bash scripts is a front end to the ssh command to add a few things.  it supports adding screen session names and connection port numbers to the user@host string, and default values and other things.

here are some of my important big scripts i want to rewrite in python:

http://stratusrelay.com/free/bash-functions
http://stratusrelay.com/free/cpionet
http://stratusrelay.com/free/run-backups
http://stratusrelay.com/free/ssh
http://stratusrelay.com/free/tarnet
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

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