LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2002, 04:31 AM   #1
jefftrwmy
LQ Newbie
 
Registered: Apr 2002
Location: Kuala Lumpur, Malaysia
Distribution: RedHat 7.2
Posts: 8

Rep: Reputation: 0
script and makin' a shortcut


Hi everybody,
Can any of you help me figure this out. I just install a staroffice. Every time I wan tto rune it, I have to type "/usr/staroffice/soffice" if I'm not in the "/usr/staroffice". How to run the staroffice any where by just typing "soffice" like any other default shell program.

This is my second question. I just made a symbolic link at my ".gnome-desktop". This link points to the staroffice script in the "/usr/staroffice/". Every time I double click the symbolic it ask whether to view, execute or cancel. How to make it to just run the script without asking too many question.

Thanks everybody.
 
Old 05-13-2002, 07:01 AM   #2
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
To answee your first question, you could try creating a link to /usr/staroffice/soffice like this:

ln -s /usr/staroffice/soffice /usr/local/bin/soffice

(then you could just type soffice). If that doesn't work, creating the following shell script in /usr/local/bin should work:

#!/bin/sh
cd /usr/staroffice
./soffice

then once you've saved that file do

chmod +x <name of the shell script file>
then you can still just type soffice (if you called the script soffice, that is)
 
  


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
shell script link/shortcut in KDE sanger440 Linux - Newbie 7 02-12-2004 05:37 PM
Makin Gift work PRIEST Linux - General 5 02-06-2004 06:38 AM
Makin the use of Samba safe herc Linux - Software 1 01-29-2004 02:21 PM
Wine Shortcut Script Streams Linux - Software 4 05-19-2003 05:08 PM
Makin an installer soulsniper Linux From Scratch 3 05-09-2003 03:49 AM


All times are GMT -5. The time now is 07:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration