Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-07-2008, 03:28 AM   #1
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
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
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..

Old 02-07-2008, 03: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:

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

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, 03:59 AM   #3
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

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


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

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration