Ive written a script that uses the source command but i get the error:
source: not found
when i enter it myself manually it works fine, is there any reason I cannot use this command in a script? (2 Replies)
Hello,
I am new to this forums and this is my first "asking help" message!
i have 2 problems:
1- for unknown reasons the "source" command is not avalable in my system (UBUNTU). i can't either see it in my bin directory!
2- again for unknown reasons the "login.cl" file in the home... (0 Replies)
Hi everyone,
I've been writing a script as an assignment which essentially does the exact same thing as the tree -d function (bash shell btw), except next to every directory name it gives a number which you can input into the same command in order to change the current working directory to the... (1 Reply)
Hi,
I am currently using SFTP 'put' command to copy all files to remote server and then delete the copied files from source directory.
Can anyone help me with a single command to copy and remove files in one go?
Thanks and Regards,
Chetan Vyas (5 Replies)
Hi all,
I am having two files, the content of first file (out.bash) is
#!/bin/bash
cd /home/jessy/abc
echo "hihi-part1"
Second file content (out2.csh)is
#!/usr/bin/csh
source ./out.bash
echo "hihi-part2"
When I run in Ubuntu, i am typing bash out2.csh,
the output display is... (7 Replies)
Hello All,
I am running source command on my project configuration file app.cfg which has conditional statements with make file systax E.g ifeq ($(APP_CMP_DIR),trunk).
When I source this file it throws error: syntax error near unexpected token... (1 Reply)
Dear friends,
I am using SCO Openserver 5.0.7.
Where does the ps -ef command pick the information from? Is it stored in some file?
Also, the ps -ef command or the ps -eo args command displays truncated information. How to get the complete expanded output without truncation?
Thanks in... (8 Replies)
Discussion started by: sabu
8 Replies
LEARN ABOUT OPENDARWIN
source
source(n) Tcl Built-In Commands source(n)
__________________________________________________________________________________________________________________________________________________NAME
source - Evaluate a file or resource as a Tcl script
SYNOPSIS
source fileName
source -rsrc resourceName ?fileName?
source -rsrcid resourceId ?fileName?
_________________________________________________________________DESCRIPTION
This command takes the contents of the specified file or resource and passes it to the Tcl interpreter as a text script. The return value
from source is the return value of the last command executed in the script. If an error occurs in evaluating the contents of the script
then the source command will return that error. If a return command is invoked from within the script then the remainder of the file will
be skipped and the source command will return normally with the result from the return command.
The end-of-file character for files is '32' (^Z) for all platforms. The source command will read files up to this character. This |
restriction does not exist for the read or gets commands, allowing for files containing code and data segments (scripted documents). If |
you require a ``^Z'' in code for string comparison, you can use `` 32'' or ``u001a'', which will be safely substituted by the Tcl inter- |
preter into ``^Z''.
The -rsrc and -rsrcid forms of this command are only available on Macintosh computers. These versions of the command allow you to source a
script from a TEXT resource. You may specify what TEXT resource to source by either name or id. By default Tcl searches all open resource
files, which include the current application and any loaded C extensions. Alternatively, you may specify the fileName where the TEXT
resource can be found.
SEE ALSO
file(n), cd(n)
KEYWORDS
file, script
Tcl source(n)