LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-07-2008, 02:28 AM   #1
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
ln - creating a link to an executable with parameters


hi there,

i am running a command with it's parameter
it looks like this
Code:
mfc-falter:/opt/tivoli/tsm/client/ba/bin # ./dsmc schedule
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
  Client Version 5, Release 4, Level 1.2  
  Client date/time: 07.02.2008 09:24:30
i have already a link for the command but without it's parameter
Code:
mfc-falter:/opt/tivoli/tsm/client/ba/bin # ls -l /usr/bin/dsmcad 
lrwxrwxrwx 1 root bin 41 Dec  6 08:35 /usr/bin/dsmcad -> ../../opt/tivoli/tsm/client/ba/bin/dsmcad

how can i change the /usr/bin/dsmcad so that it runs dsmc schedule..

ln command does not accept parameters..

thanks
 
Old 02-07-2008, 02:33 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You don't.

The standard approach is to create a small script:

Code:
#! /bin/bash
/opt/tivoli/tsm/client/ba/bin/dsmc schedule
Save it as (say) "dsched.sh" someplace handy, and make it executable:
chmod +x dsched.sh

Now you can click on the script's icon, or create a launcher for it, link to it, whatever you like.
 
Old 02-07-2008, 02:59 AM   #3
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
working wonderful, thanks a lot..
 
  


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
apache: using symbolic link to cgi-bin executable: how-to minutes2memories Linux - Software 4 03-02-2006 02:05 AM
KDevelop Executable->static link library lucky6969b Programming 1 02-13-2006 04:01 PM
creating an executable file liljhand Linux - Newbie 5 01-23-2005 10:56 PM
how to create link to an executable? Finlay Slackware 12 10-09-2004 08:19 AM
Evolution Executable Link Saxywolf Linux - Newbie 2 08-28-2004 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 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
Open Source Consulting | Domain Registration