Sponsored Content
Top Forums Shell Programming and Scripting Bash can't find file but tcsh can why? Post 302499927 by muddauber on Friday 25th of February 2011 05:26:24 PM
Old 02-25-2011
Quote:
Originally Posted by radoulov
Trying again: try to use the full path to gcc in the script.
As I said before the full gcc path doesn't change anything. Please take my word for it next time. I have a complicated route to paste from my X emulator (typescript, sftp, edit out garbage characters, copy and paste) and you guys are wearing me out. Don't get me wrong I really really appreciate all your help and the time we've already spent. But at this point maybe you'll remember I said this was not a simple problem or why would we still be at it 4 hours later?

Code:
Script started on Fri 25 Feb 2011 05:15:31 PM EST
[kit@class ~]$ cd antplot/
[kit@class antplot]$ cat ccantplot
/usr/bin/gcc -I/usr/X11R6/lib -I/usr/X11R6/include/X11 antplot.c get_color.c antinp.c -o runantplot /usr/X11R6/lib/l*.a -lm
[kit@class antplot]$ ccantplot
bash: ./ccantplot: No such file or directory
[kit@class antplot]$ exit
exit
Script done on Fri 25 Feb 2011 05:15:55 PM EST

---------- Post updated at 05:26 PM ---------- Previous update was at 05:23 PM ----------

Quote:
Originally Posted by Corona688
...or just source the file instead of running it. . ccantplot
OK progress ". ccantplot" worked?? Why did sourcing the file work?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to : Find duplicate number from file? with bash

Thanks AVKlinux (6 Replies)
Discussion started by: avklinux
6 Replies

2. UNIX for Dummies Questions & Answers

$ in sed under tcsh vs bash

In bash, I can match the ' character in a substition involving the line ending symbol $, easily. In tcsh I ran into a problem. Code: sed "s/$/'/g" filename sed "s/$/'/g" < filename sed -e "s/$/'/g" filename Unmatched '. Where can I find out why this is the case? (2 Replies)
Discussion started by: uiop44
2 Replies

3. Shell Programming and Scripting

for / foreach syntax issues (in bash or tcsh)

So I am new to unix, and actually anything outside drag and drop with the mouse (been learning for about a week so far) . I have been using the foreach command in tcsh because I am working on a group of files. Basically what I need is to insert part of the filename as the first line in the file.... (0 Replies)
Discussion started by: thepolypore
0 Replies

4. HP-UX

How to find tcsh shell version info in HP-UX?

Hi, I need to find tcsh shell version info on several boxes. I made a script and running on boxes through SSH. This is what i am doing : echo /bin/tcsh -c 'echo $version' | ssh "box name" but i dont see anything. if i run /bin/tcsh -c 'echo $version' on ocal machine i see the... (2 Replies)
Discussion started by: kailash19
2 Replies

5. UNIX for Dummies Questions & Answers

An alternative to BASH/TCSH?

Greetings! I love the power and control offered by BASH but detest its syntax! Is there some alternative *nix shell language? (other than TCSH) Or maybe a wrapper that affords the use of BASH commands via an easier syntax? I considered creating a complicated system of aliases to... (8 Replies)
Discussion started by: Koalaboration
8 Replies

6. Shell Programming and Scripting

#!/bin/bash cannot find file or directory

Hello, When i run a bash script on ubuntu i get this message.. #!/bin/bash cannot find file or directory... Can anibody help me with this, because the file actually exists.... Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies

7. Shell Programming and Scripting

Bash script to find comments in file

As I stated in a previous thread - I'm a newbie to Unix/Linux and programming. I'm trying to learn the basics on my own using a couple books and the exercises provided inside. I've reached an exercise that has me stumped. I need to write a bash script that will will read in a file and print the... (11 Replies)
Discussion started by: ksmarine1980
11 Replies

8. Shell Programming and Scripting

Bash tcsh Script runs in terminal but not folder

So, I made a script beginning with #!/bin/bash on gedit. And I double clicked it to run in terminal and I end up with "The child process exited normally with status 127" and "command not found". If I run the same script from the terminal as "tcsh (script name)" it runs just fine. If I... (8 Replies)
Discussion started by: OntorEska
8 Replies

9. Shell Programming and Scripting

Find matching file in bash with variable file names but consisent prefixs

As part of a bash the below line strips off a numerical prefix from directory 1 to search for in directory 2. for file in /home/cmccabe/Desktop/comparison/missing/*.txt do file1=${file##*/} # Strip off directory getprefix=${file1%%_*.txt} ... (5 Replies)
Discussion started by: cmccabe
5 Replies

10. UNIX for Beginners Questions & Answers

Bash command to find a file and print contents

I need to find a file and print its contents I am trying but it is not working find -path /opt/app-root/src/.npm/_logs -type f -name "*.log" -print Version $ bash -version GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) (1 Reply)
Discussion started by: SVRao19056
1 Replies
xf86cfg(1)						      General Commands Manual							xf86cfg(1)

NAME
xf86cfg - Graphical configuration tool for XFree86 4.0 SYNOPSIS
xf86cfg [-xf86config XF86Config] [-modulepath moduledir] [-fontpath fontsdir] [-toolkitoption ...] DESCRIPTION
Xf86cfg is a tool to configure XFree86 4.0, and can be used to either write the initial configuration file or make customizations to the current configuration. When the DISPLAY environment variable is not set, xf86cfg will run the command XFree86 -configure to allow the xserver detect the hardware in the computer, and write an initial XF86Config file in the user's home directory. Then, it will start XFree86 and allow customizations. If the DISPLAY environment variable is set, xf86cfg will read the default XF86Config, that may not be the same being used by the current server, and allow customizations. To use an alternative location for modules or fonts the respective search paths may be specified. Unless there is an Apply button in the current xf86cfg dialog, the changes made will take place the next time XFree86 is started. Xf86cfg allows addition and configuration of new devices, such as video cards, monitors, keyboards and mouses. Screen layout configuration for xinerama or traditional multi-head is also available. Modelines can be configured or optimized. AccessX basic configurations can be made in the xf86cfg's accessx section. OPTIONS
-xf86config Specifies an alternate XF86Config file for configuration. -modulepath Specifies where xf86cfg, and the server it may start, should look for XFree86 modules. -serverpath Specifies the complete path, not including the binary name, of the XFree86 binary. -fontpath Specifies the path to the fonts that should be used by the server started by xf86cfg. -rgbpath Specifies the path to the rgb.txt file that should be used by the server started by xf86cfg, if any. -textmode If xf86cfg was compiled with support to ncurses, this option makes xf86cfg enters a text mode interface. -nomodules When built with support for loading modules, this options changes xf86cfg behaviour, so that it will not load any modules, and thus start quicker. ENVIRONMENT
DISPLAY Default host and display number XWINHOME Directory where XFree86 was installed, defaults to /usr/X11R6. XENVIRONMENT Name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property FILES
/etc/XF86Config Server configuration file /etc/X11/XF86Config Server configuration file /usr/X11R6/etc/XF86Config Server configuration file /usr/X11R6/lib/X11/XF86Config.hostname Server configuration file /usr/X11R6/lib/X11/XF86Config Server configuration file /usr/X11R6/lib/X11/app-default/XF86Cfg Specifies xf86cfg resources /usr/X11R6/lib/X11/xkb/X0-config.keyboard Keyboard specific configuration SEE ALSO
XFree86(1) XF86Config(5) COPYRIGHT
Copyright 2000, Conectiva Linux S.A. http://www.conectiva.com Copyright 2000, The XFree86 Project http://www.XFree86.org AUTHORS
Paulo Cesar Pereira de Andrade <pcpa@conectiva.com.br> The XFree86 Project BUGS
Probably. XFree86 Version 4.7.0 xf86cfg(1)
All times are GMT -4. The time now is 04:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy