The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
In C Program, determine if job is running BCarlson High Level Programming 12 07-16-2006 12:05 PM
running a parallel program bankpro High Level Programming 4 01-20-2006 08:20 PM
Running a program on boot! D-Lexy UNIX for Dummies Questions & Answers 4 12-04-2002 05:14 PM
running a c/c++ program in unix kray High Level Programming 2 07-12-2002 03:25 AM
Running a program automatically jvadn0 Shell Programming and Scripting 3 03-12-2002 04:38 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-22-2002
perleo perleo is offline
Registered User
  
 

Join Date: Aug 2002
Location: Ireland
Posts: 139
Running a program

Hi.Iam new to Linux.i got linux 7.0 pro and dont know how to run programs. I want a perl interputer and i know i installed one but how do i run it ??? Also how do i run a C or C++ editor ?and how do i run cron ?

Last edited by perleo; 08-22-2002 at 11:49 AM..
  #2 (permalink)  
Old 08-22-2002
maverick
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Cron info

Hi,

My knowledge as far as cron is as follows:

In the user account you would like to run a command or script type in

crontab -e
This will take you into the cron file editor.

The cronjob is setup as follows

30 12 * * * echo "This job will execute now" /*Or whatever your command would be*/

30 - Minute
12 - Hour of the day
* - month day (could be set from 1-30)
* - month (could be set from 1-12)
* - day of week (0-6, where 0=Sunday)

Try the echo command in the user account you are in to echo a message to a file in the directory somewhere.

It should execute the specific time you gave it. Once you figure this out it should be pretty easy to run cronjobs from there.

Here is an example

23 17 22 8 4 echo "Is this working!" > tmp/example.txt

Make sure there is a tmp directory in your working directory.

All you need to do is change the time in crontab with the time you want the command to execute.

Hope this is of help!

Cheers
  #3 (permalink)  
Old 08-22-2002
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
perlo i would highly suggest that you get a unix for beginners book at your local book store.


I think the book will be much more valuable then these forums if you are completly new and looking for ALL of the answers.


I would suggest anything by Oreilly will be good to go.
  #4 (permalink)  
Old 08-23-2002
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
If you installed Perl correctly, then you should:

1 Find the path the file "perl" was installed to - probably /usr/bin or /usr/local/bin

2 Place #!/usr/bin/perl or #!/usr/local/bin/perl - whichever matches the path you found "perl" in - at the very top of your script

3 Change the mode of your script so it's executable: chmod +777 filename.pl

But probably the best suggestion is Optimus_P's...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0