Posts: 4,647
Threads: 1,494
Joined: Sep 2016
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.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
(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.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Apr-04-2017, 07:17 AM
(This post was last modified: Apr-04-2017, 07:17 AM by Skaperen.)
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.