LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > Skaperen
User Name
Password

Notices


Old

A different way to do I/O redirection

Posted 03-31-2021 at 07:57 PM by Skaperen
Updated 03-31-2021 at 08:02 PM by Skaperen

sometimes i encounter situations where i am putting a command in where i cannot use I/O redirection.

when i am providing a command as token words to a program or other command, using redirection may not work or be understood. the command may be read by the program or be provided in arguments on the command line that runs the program. for example it could be running the provided command somewhere else like a different directory, different user, or different host. maybe the redirection...
Senior Member
Posted in Uncategorized
Views 360 Comments 0 Skaperen is offline
Old

Base 57

Posted 03-16-2021 at 09:49 PM by Skaperen

Base 57 is the smallest base that can represent 64 bits in just 11 characters. many programmers use higher base values to do this. that forces the use of a larger set of characters that must be used. if you choose base 62 instead of base 64 you avoid the use of special characters. so you can use just letters and number for your 11 encoded digits. with base 57 you can remove 5 characters that look similar to others. for example you might use just one character of 0, O and o instead of all 3...
Senior Member
Posted in Uncategorized
Views 718 Comments 3 Skaperen is offline
Old

new commands that create needed directories

Posted 03-16-2021 at 12:25 AM by Skaperen

i made 2 new commands (with 2 subcommands each) that i will be alpha testing. the 2 commands are named dst and par. the 2 subcommands on each are the same ... ln and mv. there is a --help option, a --version option and a --verbose option. the --help and --version options cause the command to quit after it outputs its information. the --verbose option causes status information to be output.

dst mv moves a file from one path to another, creating all the needed parent directories...
Senior Member
Posted in Uncategorized
Views 304 Comments 1 Skaperen is offline
Old

Background shell sessions

Posted 03-13-2021 at 11:23 PM by Skaperen
Updated 03-15-2021 at 11:59 PM by Skaperen

welcome to Pi day 3-14! edit: Pi day is over.

i now run lots of background shell sessions. this is implement using the screen program. i have a few wrapper scripts to make it easier to use (than the plain screen command) at the command line level.

bgn creates a new background session. argument 1 is the session name. additional arguments are optional and are the first command. you can also set the virtual screen width and height (default 80x25, maximum 1023x1023)...
Senior Member
Posted in Uncategorized
Views 287 Comments 0 Skaperen is offline
Old

Python as an alternative to C

Posted 03-11-2021 at 05:35 PM by Skaperen

Python is considered a "higher level language" than C (or even C++ and C#). it does have the means to "reach down low" to most kernel syscalls and can work directly with file descriptors. its high level features allow doing human interfacing a lot easier such as making the handling of Unicode as easy as strings while still being able to work with bytes in raw form.

in my several years of coding in Python, i have done mostly system level and network level projects...
Senior Member
Posted in Uncategorized
Views 396 Comments 0 Skaperen is offline

  



All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration