Tag Archive for 'ssh'

Script pentru afisare utilizatori linux, bash login, home directory

#!/bin/bash

case $1 in
( list-users )
reset
echo “Listing users….. :)
cat /etc/passwd |cut -d ‘:’ -f1
;;

( list-valid-users )
reset
echo “Listing valid users for god >:)”
cat test|grep -w  “/bin/sh”$|cut -f1 -d’:’
cat test|grep -w  “/bin/bash”$|cut -f1 -d’:’
;;
( get-user-home )
reset
echo “Listing the users home…and username”
echo “home directori for:” $2
cat /etc/passwd|grep  $2|cut -f6 -d’:’
;;
( * )
reset
echo “Utilizati una din urmatoarele comenzi…”
echo “list-users | list-valid-users | get-user-home <nume utilizator>”

;;

esac

  • Share/Bookmark

Download Manager BASH

Anul trecut la faculta avem de facut un download manager in bash la SO(Sisteme de operare) printre altele, era un proiect destul de interesant dupa parerea mea, dar ar fi mult mai interesant sa fi avut si o interfata web un script php care sa apeleze comenzile de bash jumatate php jumatate bash
nu ii prea ok vi acasa din oras “obosit” si inainte sa te arunci la un somn verifici email-ul si vezi o chestie interesanta si o pui sa downlodeze pe un Network Storage pe care ruleaza linux si ai download manager in bash

deschizi putty te logezi pe ssh pe network storage si dai sa downlodeze “the thing” timpul acesta sar scurta daca ai aveo o interfata grafica pe network storage care sa faca downlodurile pe care le dai si nu ai fi nevoit sa iti belesti ochii in fereastra de putty in “noptile lungi” :)

Am uitat sa mentionez ca proiectul a fost facut cu 7 ore inainte de al prezenta deoarece ca deobicei am uitat prezentarea de proiect si asa ajungi sa lucrezi noaptea. :)

Download the Download Manager BASH

  • Share/Bookmark

Unix Nerd Seeks Love – Funny Craigslist Post

This is a real posting at craigslist classifieds: There is a sad truth to the world today. I am part of a dying breed of people known as “shell users.” We are an old-fashioned bunch, preferring the warm glow of a green screen full of text over the cold blockiness of a graphical interface. We use ssh, scp, and even occassionally ftp. Back in the days before high-speed connections (”broadband”), we would dial up during off-hours to avoid being slammed with huge phone bills. The whole “Microsoft Windows” fad will fade away sooner or later, but in the interim, our kind is facing extinction.

Because there are fewer and fewer of us, I must help keep our lineage alive. I am looking for someone to help me do this. I need a woman (obviously) who is willing to raise a child with me in the method of Unix. Our child will be introduced to computers at a young age, and will be setting emacs mode before any other child can even read. I earn a sufficient income to support a family in modest comfort. Other than the fact our child will be bright, text-based and sarcastic, we will otherwise be a normal family. We will even go to Disney World and see Mickey Mouse.

So, if you are a woman between the ages of 23 and 43 who is ready to raise a child in the way of the shell, let me know so we can begin the process. (If you are ready to raise more than one child, even better.)

PS – yes, this is for real. Given the right person, I would obviously propose before we … call fork().
PPS – I only set emacs mode for my ksh session. I only edit files using vi. Just wanted to clear that up. And I’m looking to raise the child(ren) as a dedicated couple, so if you aren’t interested in being married, you may wish to select() a different posting.

N.B. – on the issue of relocation. I live in a place where my income/expense ratio is proper (i.e., greater than 2:1). I’m willing to live anywhere in the world where this remains true. I’ve been to much of the country as well as foreign nations. There are no limits to where I will live *so long as the job market for unix admins is robust enough to be sustainable.* And yes, I am interested in a strictly monogamous situation. I’ve been known to actually turn down offers of “two chicks at the same time.”

By ReverseMonster

  • Share/Bookmark