+ Reply to Thread
Results 1 to 5 of 5

Thread: Need some ideas

  1. #1
    ILC
    ILC is offline
    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

  2. #2
    Not 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.

  3. #3
    ILC
    ILC is offline
    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

  4. #4
    Not 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.

  5. #5
    Ordained Mommy NeoStarO1's Avatar
    Join Date
    Oct 2001
    Location
    Big Sky Country
    Posts
    5,757
    Blog Entries
    1

    Re: Need some ideas

    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.

    -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
    -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....
    -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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews