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

Reply
 
Thread Tools

BASH,where is my ...
Old 25.10.2002, 20:37   #1
killa-hilla
 
Join Date: 03 2002
Location: Yaktown
Posts: 382
Rep Power: 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

__________________
Live Free or die...

Old 26.10.2002, 02:22   #2
Дошкольник
 
Dark Abyss of Yerevan's Avatar
 
Join Date: 01 2002
Location: hell
Posts: 124
Rep Power: 0
Post

Hastat gites vor erbeve ashxatela? chem karcum vor da ashxati..minchev telnet $host 25 hraman@ chkatarvi(aysinqn minchev `connection closed` lini u telnet cragir@ avarti ashxatanq@) mnacacner@ chen katarvi. Et vor ashxatacnes inq@ 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 cragir@, 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]

Old 26.10.2002, 04:41   #3
killa-hilla
 
Join Date: 03 2002
Location: Yaktown
Posts: 382
Rep Power: 0
Post

OK Merci parza
bayc asxatela 1000 %!!!
__________________
Live Free or die...

Old 26.10.2002, 05:55   #4
wp
Младенец
 
Join Date: 10 2002
Location: somewhere
Posts: 5
Rep Power: 0
Post

cher karogh ashxater!

telneti poxaren ogtagorci nc (nc $host 25) u mejy pipe-ov kam streamov qo uzatsy ugharki...
__________________
http://wp.homelinux.org/

Old 26.10.2002, 16:34   #5
killa-hilla
 
Join Date: 03 2002
Location: Yaktown
Posts: 382
Rep Power: 0
Post

wp>
nc:command dot found
chka tenc command!!
__________________
Live Free or die...

Old 27.10.2002, 03:04   #6
VX
Консервативн
 
VX's Avatar
 
Join Date: 01 2002
Location: Кавказская Албания
Posts: 889
Rep Power: 0
Post

Quote:
Originally posted by Yaki:
wp>
nc:command dot found
chka tenc command!!
LOL!
Chka install ara.
__________________
Праздник к нам приходит...

|^^^^^^^^^'''^\| ||\__
| ВОДКА-ВОДКА | ||','''|'''''''\_____,_
| _..... _ | ||_ _|'__|_____||.........| |
'(@)'(@)'(@)''''''''''''''''''''''*|(@)""""|(@)*

Old 27.10.2002, 05:26   #7
Младенец
 
Join Date: 07 2002
Location: Arminco
Posts: 18
Rep Power: 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




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 10:28.
Top

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