LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2004, 05:18 PM   #1
Rv5
Member
 
Registered: Sep 2003
Distribution: RedHat9
Posts: 114

Rep: Reputation: 15
Editing Files


I need to use cron and at in a project that creates and edits files. Can I do this through shell scripts, or do I need to go with awk, perl or c?
 
Old 09-08-2004, 07:35 PM   #2
rjtucke
Member
 
Registered: Sep 2004
Distribution: Debian testing
Posts: 49

Rep: Reputation: 16
More details please- what are you trying to do? The answer to your question so far is "yes".
 
Old 09-08-2004, 08:59 PM   #3
Rv5
Member
 
Registered: Sep 2003
Distribution: RedHat9
Posts: 114

Original Poster
Rep: Reputation: 15
two assignments: (please not this is just quickly copied as the assignment was given orally)

1) use the at command. set up the at command so that once every hour for one week append on the end of a file the date and the time

2) use the cron command. run cron at 3 am every day of the week to write out the date and time. create a new file for each day of the week. each time it runs use the mail system to mail a notice to yourself at school and home.

so for these types of progs should i use shell or should i invest my time beefing up on a language?
 
Old 09-08-2004, 09:06 PM   #4
rjtucke
Member
 
Registered: Sep 2004
Distribution: Debian testing
Posts: 49

Rep: Reputation: 16
Hm. Interesting assignments. I would do them as perl one-liners myself, because I love perl. And btw, if you know, say bash shell, learning perl is NOT THAT HARD. I came from C++ to perl myself, but was amazed at how easy it was. So.... I suggest looking into perl.

The best books available IMHO are the O'Reilly series- do Learning Perl, Perl Cookbook, and Programming Perl, in that order. Very good books. Well written. And if you have any troubles, just post a question.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
editing files zexter Linux - Software 2 11-05-2004 11:27 AM
editing files clemrick Linux - Newbie 4 11-01-2004 11:14 PM
Editing files Hone101 Linux - General 3 03-22-2003 12:47 PM
Editing files nicomon Linux - General 3 12-02-2002 10:43 PM
re: editing files malbowges Linux - Newbie 1 04-30-2002 07:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration