Thread: Need some ideas
-
March 9th, 2002, 12:54 AM #1
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
-
March 9th, 2002, 02:49 AM #2Not Really a Member
- Join Date
- Oct 2001
- Posts
- 27,856
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.
-
March 9th, 2002, 01:18 PM #3
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
-
March 10th, 2002, 05:51 PM #4Not Really a Member
- Join Date
- Oct 2001
- Posts
- 27,856
no worries

For that matter you could do it easier in a bash script
lol however that doesn't fit the assignment
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
-
March 10th, 2002, 06:38 PM #5
Re: Need some ideas
I am no expert at Unix. Im not clear on the one thing that you want and that is your first line.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
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.-create an "email" system that sends text messages to any users on our unix server
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
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....-has to create/send messages
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....
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.-delete messages and -check for new messages/read old messages
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
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL
About LinkBacks



Reply With Quote

NASCAR All Star race National anthem SUCKED!
Is It Just Me? v233893843