Subdomain Posts
Bash | 46 min ago
Bash | 2 days ago
Bash | 2 days ago
Bash | 7 days ago
None | 8 days ago
Bash | 12 days ago
Bash | 12 days ago
Bash | 12 days ago
Bash | 12 days ago
Bash | 14 days ago
Recent Posts
None | 18 sec ago
None | 45 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
C++ | 1 min ago
PHP | 2 min ago
None | 2 min ago
PHP | 2 min ago
None | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By ashka on the 31st of Jan 2010 12:18:36 PM Download | Raw | Embed | Report
  1.  
  2.  Script
  3.  
  4.  
  5. for mail in $list
  6. do
  7.         ISZ2=`expr $isz2 + 1`
  8.         if [ "$isz2" == "$chiffre" ]; then
  9.                 echo Appuyez sur Q pour quitter la page
  10.                 echo Appuyez maintenant sur Entrée pour afficher le mail
  11.                 sleep 1
  12.                 read null
  13.                 less "/var/mail/root/$mail"
  14.                 clear
  15.                 echo [1] Supprimer le mail
  16.                 echo [*] Archiver le mail dans /var/mail/rootarchive/
  17.                 read -n 1 quoifaire
  18.                 if [ "$quoifaire" == "1" ]; then
  19.                         rm /var/mail/root/$mail
  20.                         echo Mail supprimé.
  21.                 else
  22.                         mv /var/mail/root/$mail /var/mail/rootarchive/$RANDOM.$mail
  23.                         echo Mail archivé.
  24.                 fi
  25.         fi
  26. done
  27.  
  28. echo [Q] Quitter le programme
  29. echo [*] Lire un autre mail
  30. read -n 1 restart
  31. if [ "$restart" == "Q" ]; then
  32. echo "\n"
  33. exit 0
  34. fi
  35. if [ "$restart" == "q" ]; then
  36. echo "\n"
  37. exit 0
  38. fi
  39. echo "\n"
  40. done
  41.  
  42.  
  43.  Sortie
  44.  
  45.  
  46. [root@shellgratuit:~]# ./readmail.sh
  47. Il y a  mail(s) non lu(s) dans votre boîte de réception
  48. Tapez le numéro de celui à lire
  49. 1
  50. [Q] Quitter le programme
  51. [*] Lire un autre mail
  52. q\n
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: