home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Need some ideas

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2345
Discussions: 200,942, Posts: 2,379,282, Members: 246,304
Old March 9th, 2002, 12:54 AM   Digg it!   #1 (permalink)
ILC
Senior Member
 
ILC's Avatar
 
Join Date: Oct 2001
Location: Eastern Shore
Posts: 701
Need some ideas

Alright, was just assigned my next project in class today, and its unlike anything ive done before. Here are the basics:

-create an "email" system that sends text messages to any users on our unix server
-has to create/send messages
-delete messages
-check for new messages/read old messages
-has to have user friendly output, i.e. menu driven etc

Alright, thats the main gist of it, basically all I need to figure out is how to send the .txt files over the server to the specifed user??

ILC
ILC is offline   Reply With Quote
Old March 9th, 2002, 02:49 AM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,385
cp /pathtofilename /home/user/desktop/newfilename.txt ?
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Old March 9th, 2002, 01:18 PM     #3 (permalink)
ILC
Senior Member
 
ILC's Avatar
 
Join Date: Oct 2001
Location: Eastern Shore
Posts: 701
oh yea.....great idea, so, heres what I was thinking,

system("cp {file path of .txt]} {filepath to new loc}");

thats a great idea, never thought of it happening like that

thanks vass

ILC
ILC is offline   Reply With Quote
Old March 10th, 2002, 05:51 PM     #4 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,385
no worries

For that matter you could do it easier in a bash script lol however that doesn't fit the assignment
vass0922 is offline   Reply With Quote
Old March 10th, 2002, 06:38 PM     #5 (permalink)
Ordained Mommy
 
NeoStarO1's Avatar
 
Join Date: Oct 2001
Location: Big Sky Country
Posts: 4,259
Blog Entries: 1
Re: Need some ideas

Quote:
Originally posted by ILC
Alright, was just assigned my next project in class today, and its unlike anything ive done before. Here are the basics:

-create an "email" system that sends text messages to any users on our unix server
-has to create/send messages
-delete messages
-check for new messages/read old messages
-has to have user friendly output, i.e. menu driven etc

Alright, thats the main gist of it, basically all I need to figure out is how to send the .txt files over the server to the specifed user??

ILC

I am no expert at Unix. Im not clear on the one thing that you want and that is your first line.

Quote:
-create an "email" system that sends text messages to any users on our unix server

not sure if you are suppose to put the file in thier directory or if you want to email a file to the user via the mail or mailx command.

To send file using the mail or mailx command you would do this...

mail username < filename

If you want to add a subject line to the email you would do the command like this....with the -s switch

mail -s "Subject place in quotes here" usermailingto < filename

Its far easier to set up a file called .mailrc that holds all your email alasis that way you don't have to type the entire email address and only thier alasis. adn that would go where the usermailingto section.

the second one
Quote:
-has to create/send messages

Creating and sending messages are used with the mail or mailx command. and to send the msg the control key used to send messages is....

Control D This first time will bring up a CC: line and you can add other alasis here or you can just do a Control D again and off it goes to the user you mailed. That is how I did this.

The Thrid and forth one....
Quote:
-delete messages and -check for new messages/read old messages

Usally all your old mail goes to another file and there are delete options for each one, I can't remember how to do this one. If you ahve text books it should be explained somewhere in there unless someone else comes along and tells ya.

for the check new and old messages. Once you log in it sometimes it will tell you if you have new mail if not just type in mail or mailx and it will either show you your messages or display an output that there are no new messages. old messages are stored in a different folder.


The last one, I have no clue what you are asking. As I said I am no expert so advise could possibly be goofed! Please remember my statements here are from my experience from logging onto the unix server remotely for my class.

That is about as far as I can do for unix at this moment. Others I am sure will be along to help out.

NeoStar
NeoStarO1 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2916)
Hackers global warming emails (5)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (9)
California Passes Anti-Flat-HDTV Le.. (43)
Regular Build (6)
Is the PSU I received dead? (11)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Asus P4G8X Mobo (4)
screen resolution vs monitor size (2)
Wireless Televisions. (9)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)


All times are GMT -4. The time now is 03:16 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28