LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2004, 03:43 AM   #1
spacemonk
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
Running a script


I need some help. I need to know how to do a couple of thing:

1) Run a script (*.sh) with the terminal
2) I installed Adobe Acrobat but don't know how to run it


Please help me out. If there are any good urls for this, please post them!

I'm using Red Hat 9 by the way.
 
Old 07-30-2004, 04:25 AM   #2
El Basto
Member
 
Registered: Jun 2004
Location: Thousand Oaks, CA
Distribution: Suse 9.2, Slackware
Posts: 76

Rep: Reputation: 15
To run the script from the terminal, just type in the path to your script. Say you have the script saved as /home/name/script.sh. To run this script you can either type /home/name/script.sh or since the current directory is probably already /home/name/ you can type ./script.sh. (the period is shorthand for the current directory)

To run Acrobat you will have to figure out what directory it is installed in. But if Redhat associated pdfs with Acrobat then all you should have to do is right click on the pdf, the go to "open with" and select Acrobat. And if Acrobat isnt listed there then either browse for acrobat or type in acrobat.

Hope this helps, and good luck!
 
Old 07-30-2004, 04:32 AM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
To run Acrobat type acroread at the command line. If that doesn't work type
whereis acroread
and put in the full path.

Last edited by darthtux; 07-30-2004 at 04:33 AM.
 
Old 07-30-2004, 04:32 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
A terminal can be run with Gnome-terminal, or Kterm, or Aterm, or Eterm, or xvt, or rxvt, or xterm, or...
When the terminal window is opened, you've got a prompt. Let's assume this prompt is "$". There are commands you can issue:
- "cd" is for changing directories (like in DOS, except directories are separated by /, and the the origin of everything is /, not C:\).
- "less" is for viewing a file page after page (is that "type" in DOS?).
- "echo" is for displaying text.
- "env" is for viewing environment viariables (it is "set" in DOS).
In linux, multiple paths in an environment variable are separated by a ':', not a ';'. And environment variables are refered to like that: $VAR, or that: ${VAR} (whereas in DOS it is %VAR%).
For example, commands are searched for in each path that appear in the PATH environment variable, until found, in the order they are written. For viewing your path, that would be for example:

$ echo $PATH
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin

If you want to execute a command that is not in a path from PATH, then you must give the full path to the command. You may also use a relative path: like in DOS, "." is for current directory, and ".." is for parent directory. Besides, "~" is for your home directory.

Now back to your question. Let's assume your command is located at (<you> is your login): /home/<you>/myDownloads/install.sh
Then you would execute:

$ cd ~/myDownloads
$ ./install.sh

That's all (don't type the '$': it is the prompt).
I hope this helps.

Yves.
 
Old 07-30-2004, 05:02 AM   #5
spacemonk
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks

Thanks everybody, problem solved!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I check to see if a script is running? slick_willie Programming 13 03-16-2007 11:18 AM
running perl script dav_y2k Linux - Newbie 3 04-25-2005 06:00 AM
continuous running a pl script sikkalgopal Linux - Software 6 02-19-2005 06:05 AM
Running a script file johnlb Linux - Newbie 2 02-19-2003 03:17 AM
running script at boottime Ratclaws Linux - General 2 10-24-2001 07:05 PM


All times are GMT -5. The time now is 01:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration