problem with source command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting problem with source command
# 1  
Old 12-22-2004
problem with source command

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  
Old 12-22-2004
source is a csh command. Make the first line of your script:
#! /usr/bin/csh
or whatever the path to your shell is.
# 3  
Old 12-22-2004
Bug

yeah that was it, thanks for that
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem creating lpp source - 0042-267

Hello, I am running AIX6.1TL9SP1 and i want to create an lpp source from my NIM Master in order to perform AIX update of my other AIX machines. I already did the installation on my NIM Master so it has the right version, but when i use the same resources that i used for the update i get the... (2 Replies)
Discussion started by: omonoiatis9
2 Replies

2. UNIX for Dummies Questions & Answers

Problem with install aquila dsp library from source.

Hi All, I am trying to install aquila-dsp. an open source c++ library from dsp functions in my ubuntu 12.10. I downloaded the aquila source. configured, make and did make install. It seems to be installed in /usr/lib/aquila. The compile fails in linking when I try using api provided by... (0 Replies)
Discussion started by: tamil.pamaran
0 Replies

3. Shell Programming and Scripting

Ps command source.

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

4. Shell Programming and Scripting

Awk command with two source files

Hello, I have two source files: sourcefile1.dat: 12345 xxx yyy zzz 23456 qqq ttt rrr 34567 ppp jjj ggg 45678 fff ddd sss 56789 nnn mmm ccc sourcefile2.dat: 12345.gif 34567.gif I want to obtain a simple awk one linger to obtain the following: xxx yyy zzz 12345.gif qqq ttt rrr... (15 Replies)
Discussion started by: palex
15 Replies

5. Programming

Source Command in Unix

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)
Discussion started by: jessy83
7 Replies

6. Shell Programming and Scripting

Any command to delete files from source dir after SFTP copy

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)
Discussion started by: chetancrsp18
5 Replies

7. Shell Programming and Scripting

Source Command

Hello, I have created a script that changes directories but in order for it to work I always need to invoke a source ./script Here is a copy of my script.. if I do not invoke "source ./script" the change directory command does not work. Any ideas? // The script is pretty basic ... (1 Reply)
Discussion started by: NelsonC
1 Replies

8. UNIX for Dummies Questions & Answers

Trouble with the Source command..

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)
Discussion started by: petey22uk
1 Replies

9. Programming

ls command source code

Hi all, I want to know how ls was implemented in linux.; How to view the source code? filename/sitename...? thanks (1 Reply)
Discussion started by: linuxer_rh
1 Replies
Login or Register to Ask a Question