Sponsored Content
Top Forums Shell Programming and Scripting No such file or directory error Post 302794731 by joeyg on Tuesday 16th of April 2013 02:06:40 PM
Old 04-16-2013
Perhaps this prior question/answer will help

Take a look at
https://www.unix.com/shell-programmin...statement.html

What shell are you running?
This User Gave Thanks to joeyg For This Post:
 

10 More Discussions You Might Find Interesting

1. Linux

error: rw/regexp.h: No such file or directory

Hello every one, i am trying to compile c++ modules. while compiling a module i am getting the following error. cdbh_RecordStore.C:32:23: error: rw/regexp.h: No such file or directory make: *** Error 1 I googled for the solution , i found that this is a Rogue wave class. actually... (0 Replies)
Discussion started by: mannam srinivas
0 Replies

2. UNIX for Dummies Questions & Answers

SFTP error: no such file or directory

Hi All, I am using a shell script for SFTPing the files to target server. The problem which I am facing is that even if the files are not transferred, the script finishes successfully. I want the script to fail in case the remote directory does not exists. The script which I am using is as... (1 Reply)
Discussion started by: shalini@@@
1 Replies

3. Linux

Error crt0.o no such file or directory

Hi, I am installing gcc cross compiler for x86_64. After installation when i am compiling simple program, i am getting error as "/usr/cross/lib/gcc-lib/x86_64-pc-elf/3.2.3/../../../../x86_64-pc-elf/bin/ld: cannot open crt0.o: No such file or directory" Please tell me how to resolve this... (1 Reply)
Discussion started by: Mandar123
1 Replies

4. UNIX for Dummies Questions & Answers

Error: GL/glut.h: No such file or directory

hi, I get this error when I compile my source on mac Leopard. is because I need to configure openGL path ? Monitor.h:15:60: error: GL/glut.h: No such file or directory Monitor.h:16:60: error: GL/gl.h: No such file or directory Monitor.C: In function 'void display2()': Monitor.C:77:... (0 Replies)
Discussion started by: aneuryzma
0 Replies

5. UNIX for Dummies Questions & Answers

SCP error: No such file or directory

Hi, I am trying to do scp using the following script: #!/usr/local/bin/bash BUILDDATE=20120220 for line in `cat arch_host_plat_src_dest` do src=`echo $line | cut -d: -f4` dest=`echo $line | cut -d: -f5` echo scp -p /builds/${BUILDDATE}/Integration/$src ... (1 Reply)
Discussion started by: Technext
1 Replies

6. Shell Programming and Scripting

Error : No such file or directory

Hi, I have issued the below command to remove directories under a specific path, it removes them fine. But atlast it tries to find the same directory and fails. Directories: /root/app/dir /root/app/dir/files/ /root/app/dir/backup/ /root/app/dir/archive/ Command: find... (1 Reply)
Discussion started by: vel4ever
1 Replies

7. Solaris

/bin/find: stat() error <File> : No such file or directory

Hi, I am getting below error in Solaris 10 SPARC when trying to issue a search on /var/tmp partition Below is the query /bin/find /var/tmp/ -type f -atime +1 Below is the result /bin/find: stat() error <File> : No such file or directory (28 Replies)
Discussion started by: prash358
28 Replies

8. Shell Programming and Scripting

No Such File or Directory error

Hi! I just recently started messing around with Unix, but I've come upon one problem multiple times. Whenever I try to run a shell script, for example; #! /bin/bash #-------------------------------------- # example1 #-------------------------------------- echo "Hello, World!" I... (5 Replies)
Discussion started by: SoapilyProne
5 Replies

9. Shell Programming and Scripting

Weird Error (: No such file or directory)

Hi Everyone, I am trying to make this script to use, to find out the DAHDI channel status. Every thing works fine, I even get proper results, however I have this weird error that comes along. Can someone please help me. Thanks a lot. #!/bin/bash # Color to set the test to when a channel is... (3 Replies)
Discussion started by: jeetz
3 Replies

10. Shell Programming and Scripting

No such file or directory error

I am new to shell scripting so I assume there is something basic I am missing but I have not been able to figure it out. When I run the following code from a script it can't find the paths to the directory or files. I can literally cut and paste the commands into terminal and they work fine. Why... (2 Replies)
Discussion started by: TryAgain12
2 Replies
exit(1) 							   User Commands							   exit(1)

NAME
exit, return, goto - shell built-in functions to enable the execution of the shell to advance beyond its sequence of steps SYNOPSIS
sh exit [n] return [n] csh exit [ ( expr )] goto label ksh *exit [n] *return [n] DESCRIPTION
sh exit will cause the calling shell or shell script to exit with the exit status specified by n. If n is omitted the exit status is that of the last command executed (an EOF will also cause the shell to exit.) return causes a function to exit with the return value specified by n. If n is omitted, the return status is that of the last command exe- cuted. csh exit will cause the calling shell or shell script to exit, either with the value of the status variable or with the value specified by the expression expr. The goto built-in uses a specified label as a search string amongst commands. The shell rewinds its input as much as possible and searches for a line of the form label: possibly preceded by space or tab characters. Execution continues after the indicated line. It is an error to jump to a label that occurs between a while or for built-in command and its corresponding end. ksh exit will cause the calling shell or shell script to exit with the exit status specified by n. The value will be the least significant 8 bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing a trap, the last command refers to the command that executed before the trap was invoked. An end-of-file will also cause the shell to exit except for a shell which has the ignoreeof option (See set below) turned on. return causes a shell function or '.' script to return to the invoking script with the return status specified by n. The value will be the least significant 8 bits of the specified status. If n is omitted then the return status is that of the last command executed. If return is invoked while not in a function or a '.' script, then it is the same as an exit. On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways: 1. Variable assignment lists preceding the command remain in effect when the command completes. 2. I/O redirections are processed after variable assignments. 3. Errors cause a script that contains them to abort. 4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari- able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not performed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
break(1), csh(1), ksh(1), sh(1), attributes(5) SunOS 5.10 15 Apr 1994 exit(1)
All times are GMT -4. The time now is 11:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy