LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ln - creating a link to an executable with parameters (https://www.linuxquestions.org/questions/linux-newbie-8/ln-creating-a-link-to-an-executable-with-parameters-619273/)

laucian 02-07-2008 02:28 AM

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

Simon Bridge 02-07-2008 02:33 AM

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.

laucian 02-07-2008 02:59 AM

working wonderful, thanks a lot..


All times are GMT -5. The time now is 05:07 PM.