Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Operating Systems > Unix
Register

Reply
 
LinkBack Thread Tools
Old 25.10.2002, 21:37   #1
killa-hilla
 
Join Date: 03 2002
Location: Yaktown
Posts: 382
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Unhappy BASH,where is my ...

Narod pomogite arajin angam ashxatec u vse el chi ashxatel
inchuma sxals
#!/bin/bash
echo "Enter Server";
read host;
echo "From:"
read sender;
echo "To:"
read to;
echo "Text:";
read text;
telnet $host 25;
helo valod
mail from: $sender
rcpt to: $to
data
$text
.
quit

Reply With Quote
Old 26.10.2002, 03:22   #2
Дошкольник
 
Dark Abyss of Yerevan's Avatar
 
Join Date: 01 2002
Location: hell
Posts: 124
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

Hastat gites vor erbeve ashxatela? chem karcum vor da ashxati..minchev telnet $host 25 [email protected] chkatarvi(aysinqn minchev `connection closed` lini u telnet [email protected] avarti [email protected]) [email protected] chen katarvi. Et vor ashxatacnes [email protected] petqa vor kpni 25 portin trvac hosti u spasi mutqi...karas porces heto escape character sxmi, (ctrl-']'), heto ctrl-d. dranic heto nor kporci katarel 'helo valod', u bnakanabar vochmi lav ban chi stacvi.
Aveli lava ogtagorci sendmail [email protected], with pipes:
Code:
 
#!/bin/bash
echo "From:"
read sender;
echo "To:"
read to;
echo "Subject:";
read subject;
echo "Text:";
read text;
echo -e "From: $sender\nSubject: $subject\n\n $text" | sendmail $to;
__________________
[x]-=-[ ]-=-[x]
Reply With Quote
Old 26.10.2002, 05:41   #3
killa-hilla
 
Join Date: 03 2002
Location: Yaktown
Posts: 382
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

OK Merci parza
bayc asxatela 1000 %!!!
Reply With Quote
Old 26.10.2002, 06:55   #4
Младенец
 
Join Date: 10 2002
Location: somewhere
Posts: 5
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

cher karogh ashxater!

telneti poxaren ogtagorci nc (nc $host 25) u mejy pipe-ov kam streamov qo uzatsy ugharki...
Reply With Quote
Old 26.10.2002, 17:34   #5
killa-hilla
 
Join Date: 03 2002
Location: Yaktown
Posts: 382
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

wp>
nc:command dot found
chka tenc command!!
Reply With Quote
Old 27.10.2002, 03:04   #6
Консервативн
 
VX's Avatar
 
Join Date: 01 2002
Location: Кавказская Албания
Posts: 889
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

Quote:
Originally posted by Yaki:
wp>
nc:command dot found
chka tenc command!!
LOL!
Chka install ara.
Reply With Quote
Old 27.10.2002, 05:26   #7
Младенец
 
Join Date: 07 2002
Location: Arminco
Posts: 18
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

LOOOL,

If you do not have nc you can code in C and use fputs and fgets or even perl or eeeeeven PHP with php (Executable).
Or you can use language called expect which you need to install.
With expect you can work like

spawn host 25

and then write your command and wait for your responce

MAN EXPECT or MAN GOOGLE



Good luck
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 14:01.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.