LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

list users.

Posted 12-16-2014 at 12:32 AM by peonuser

lsuser.sh
Code:
#=================================
# lsuser - list users
#=================================
# Assignments
# --------------------------------
datafile="/etc/passwd"
# end assignments
#=================================
#
# Data input
#---------------------------------
while read line
do echo $line | cut -d: -f1
done < $datafile
$ chmod +x lsuser.sh...
Member
Posted in Uncategorized
Views 65 Comments 0 peonuser is offline
Old

Happy Hollidays!

Posted 12-13-2014 at 09:02 AM by peonuser
Updated Today at 12:21 AM by peonuser

With a little web research squared away my issues with arch arm/x86 and the web servers. The answer was there all along, but it took some experience with arch to realize what was done.

Put old machines back to work as starter systems.
Yes Virginia, Slackware does run on a Pentium I with 256 meg ram.

# uname -a
Linux slacky 3.10.17 #2 Wed Oct 23 17:46:52 CDT 2013 i586 Pentium MMX GenuineIntel GNU/Linux
root@slacky:~# cat /proc/cpuinfo
processor...
Member
Posted in Uncategorized
Views 110 Comments 3 peonuser is offline
Old

Thanksgiving yes!

Posted 11-25-2014 at 10:37 AM by peonuser

So happy happy, My pogoplug arch linux box seems to have had a miraculous fix. It came up and of course I am running pacman (package manager).
Member
Posted in Uncategorized
Views 128 Comments 0 peonuser is offline
Old

dbase menus to bash.

Posted 11-20-2014 at 02:30 AM by peonuser
Updated 11-20-2014 at 02:35 AM by peonuser

Wondered if there could be a way to mimic the old dbase menus from Freddies Fish market in bash . This what I came up with:

Dbase:
mainmenu.prg

**************************************
* *
* Main *
* Eddie's fish market *
* main menu *
* main.prg *
* *...
Member
Posted in Uncategorized
Views 93 Comments 0 peonuser is offline
Old

Pictures to html

Posted 11-19-2014 at 07:21 AM by peonuser

Generate a web page three pics wide from a directory of pictures.

#!/bin/bash
# daffinitions
ls *.png > picdatafile
#ls *.jpg >> picdatafile
#ls *.JPG >> picdatafile
datafile="picdatafile"
htmlfile="test.html"
a=1
m="not done"
d=" "

#read the file
while read line
do fdata[$a]=$line
let a=a+1
done < $datafile...
Member
Posted in Uncategorized
Views 91 Comments 0 peonuser is offline

  



All times are GMT -5. The time now is 01:20 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration