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
Get real value from real-time systems iBot Complex Event Processing RSS News 0 01-14-2008 02:10 AM
cut awk dummy question :) sopel39 UNIX for Dummies Questions & Answers 14 11-14-2007 02:14 PM
question from a dummy cinnamonbear UNIX for Dummies Questions & Answers 2 08-27-2006 09:52 PM
Dummy need help :( sabercats Shell Programming and Scripting 8 03-12-2006 02:31 AM
Dummy Needs Help amygdala UNIX for Dummies Questions & Answers 4 08-31-2001 11:14 PM

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 02-06-2001
Keith Keith is offline
Registered User
  
 

Join Date: Feb 2001
Posts: 4
After reading so many posts in this section, I'm convinced there are no other dummies here but me. You guys are light years ahead.

I have a great understanding of the Windows environment, but lost right now in some things pertaining to Unix. See, I'm a recent convert and put my website up on a unix box.

So I have secure telnet access and FTP. But I need to "execute" a "program" on the server and have absolutely no clue. I am trying to have the server run a messageboard script, which can easily be edited on my Desktop (windows). It's on the server and is used to update my database. It's written in Perl.

Bottom line, need to find out what would be similar command to "exec" in DOS (or RUN in basic) which was used to execute the compiled program name which followed. Is there a unix equivalent to "run" the database update script?

Thanks in advance.

Keith
  #2 (permalink)  
Old 02-06-2001
98_1LE 98_1LE is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
There are no UNIX dummies, only those who have not been enlightened by it's power! Welcome.

To exectute a program in UNIX, it must first be executable. If the perl script is named msgbd.pl, from the directory where the script is stored, type
ls -l msgbd.pl

You should see something like;

-rwxr-xr-- 1 keith site32 703 Jan 11 12:14 msgbd.pl

What you are looking for is the x in rwxr--r--. This is the permission set associated with this file. It is split into three sets, owner, group, and everyone. This file had read, write and execute for the owner, read and execute for the group, and read for everyone. To make it exectutable for everyone, type;
chmod +x msgbd.pl

To execute the program, cd into the directory where the script is, and type;
./msgbd.pl

The ./ means this directory. It may be in your " search path" and not require the ./, but it may not.

[Edited by 98_1LE on 02-06-2001 at 10:28 AM]
  #3 (permalink)  
Old 02-06-2001
Keith Keith is offline
Registered User
  
 

Join Date: Feb 2001
Posts: 4
OUTSTANDING!!1 That's just what I was looking for. I'm familiar with some of what you described, so the rest of your message was exactly what I needed. Thanks so much for the reply.

I'm really enjoying this "unix" thing. I moved from CP/M to Apples OS (1982) to DOS, then Windows and been there since 1990 or so. I hated Windows with a passion, but that's where all the apps were.

So now I have a good feeling about what I can do with Unix, just a TON of stuff to learn. Thanks again.

Keith
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 11:54 AM.


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