Help to explaining a command in run dot tcl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help to explaining a command in run dot tcl
# 1  
Old 12-06-2012
Help to explaining a command in run dot tcl

Hi,

I'm running a rdt (run dot tcl) command, and come accross this line:
Code:
alias abc 'set ARGS =(\!*);  source home123/abc/$ARGS/setup'

What does the command exactly do?
Please help.

Last edited by Franklin52; 12-07-2012 at 10:44 AM.. Reason: Please use code tags
# 2  
Old 12-06-2012
Check this link out for an explanation of 'source':
source manual page - Built-In Commands
This User Gave Thanks to spacebar For This Post:
# 3  
Old 12-06-2012
What about the --> set ARGS =(\!*)
what is that for?
# 4  
Old 12-07-2012
I'm not sure, What Shell are you using( i.e. ksh, bash, csh, etc.)?
Looks like it is setting up a 'alias' with the below command so that it can quickly be executed when "abc" is entered on the command line:
Code:
alias abc 'set ARGS =(\!*);  source home123/abc/$ARGS/setup'

# 5  
Old 12-08-2012
He said it's TCL I believe, a language unfortunately I know little of
This User Gave Thanks to Corona688 For This Post:
# 6  
Old 12-08-2012
It's probably "tcsh" or "csh", so check out the info for using "alias"(i.e.\!*) at this link:Writing Aliases in csh and tcsh
This User Gave Thanks to spacebar For This Post:
# 7  
Old 12-09-2012
thanks guys..
the link provided by spacebar is very helpful for this understanding..
much appreciated`
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script for telnet and run one command kill it and run another command using while loop

( sleep 3 echo ${LOGIN} sleep 2 echo ${PSWD} sleep 2 while read line do echo "$line" PID=$? sleep 2 kill -9 $PID done < temp sleep 5 echo "exit" ) | telnet ${HOST} while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies

2. Shell Programming and Scripting

how to remove a variable starting with dot using sed command

Hi, I want to remove a variable starting with dot(.) in a file using sed command. aaa sss .abc s/^\.abc/d I tried this but it didnt worked. (5 Replies)
Discussion started by: vdhingra123
5 Replies

3. UNIX for Dummies Questions & Answers

Dot and redirected output syntax in a tar command

Hi All, Please could anyone advise what the purpose of the dot syntax in the following command means: tar -cvf ${WORKING_BACKUP_ROOT}/${TAR_ARCHIVE_FILE} . >/${BACKUP_ROOT}/${ARCHIVE_LOG} Many thanks (2 Replies)
Discussion started by: daveu7
2 Replies

4. UNIX for Dummies Questions & Answers

Tcl script wont run in bash shell

Hello I'm having a problem running a TCL script in my new OpenSolaris OS. When I go to the directory containing my script called 'Install' (using the gnome terminal), it doesn't seem to be able to find it even though it lists it i.e. if I type "Inst" and hit tab to complete the word, it... (11 Replies)
Discussion started by: sbsbg
11 Replies

5. Programming

how to call dot c file using system command

Hi every one, i have to dot pc files. One have main function but one dont have.I have to call dot pc file using system () cmd.File is being call have main function.Please let me know how i can call .pc file with two arguments from other dot pc file.I want some thing like sprintf(buf, "ss_xxx.pc... (4 Replies)
Discussion started by: goraya430
4 Replies

6. Shell Programming and Scripting

how to call dot c file using system command

Hi every one, i have to dot pc files. One have main function but one dont have.I have to call dot pc file using system () cmd.File is being call have main function.Please let me know how i can call .pc file with two arguments from other dot pc file.I want some thing like sprintf(buf,... (1 Reply)
Discussion started by: goraya430
1 Replies

7. UNIX for Dummies Questions & Answers

I'm unable to run Keyed List commands(in ubuntu's terminal and Evolane Tcl Engine)

I'm trying to run these commands (keylset,keylget) but i keep getting a error message "invalid command name "keylset"". I've tried running it on both ubuntu's terminal and also Evolane Tcl Engine. Any idea what could be the problem? (1 Reply)
Discussion started by: abe171
1 Replies

8. Linux

The dot command-line utility?

Hi, What else is the dot used beside relative filepaths in bash? Is it a shell utility as well? No man entry for dot (.)... (3 Replies)
Discussion started by: varelg
3 Replies

9. UNIX for Dummies Questions & Answers

command to list dot files

hey. i am a bit new to unix and i am trying to figure out how to list the names of the 'dot' files that are in my account. what command does this? thank you very much for your help. (4 Replies)
Discussion started by: Jakeman1086
4 Replies

10. UNIX for Dummies Questions & Answers

run tcl (please help!)

:confused: Hi !! I'm in a new system, trying to run some old scripts tcl I have. Tcl is installed (see below), and the OS is linux (see below env). All my scripts tcl begin with: #!/bin/sh # the next line restarts using tclsh \ exec tclsh "$0" "$@" 1 But they don't want to run... ... (2 Replies)
Discussion started by: cordobapablo
2 Replies
Login or Register to Ask a Question