Sponsored Content
Top Forums Shell Programming and Scripting File exists, but cannot be opened.How to check- whether it could be opened to read when it exists Post 302638663 by neutronscott on Thursday 10th of May 2012 02:15:13 PM
Old 05-10-2012
[ should include -r for readable and -w for writable.
This User Gave Thanks to neutronscott For This Post:
 

10 More Discussions You Might Find Interesting

1. Programming

Check if file exists + ulp :S

Hi all! I know that this may not be the best forum to ask ulp and eagle related question. But the guys from eagle didn't know the answer and this is the BEST programming forum I know :D How can I check if a file exists while programming eagle's ulp's? There is not much information on-line.... (2 Replies)
Discussion started by: ruben.rodrigues
2 Replies

2. Shell Programming and Scripting

Check to see if a file exists?

Hi. I'd like to have an IF-Then-Else statement where I can check to see if a file exists? We have the Bourne Shell by default. I'm looking for the syntax to do something like this: if myfile.txt exists then ...my code else ...my code end if Any help would be greatly... (5 Replies)
Discussion started by: buechler66
5 Replies

3. Shell Programming and Scripting

Script to check file exists

Hi, I am trying to write a script which checks if any file exists with "*.log" or "*.out" in Directory below is the code #------------------ path=/abd/xyz/ if ; then echo "Good" else echo "Failure" fi #-------------------------- its always going to else part and printing... (8 Replies)
Discussion started by: ch33ry
8 Replies

4. Shell Programming and Scripting

how to check to see if a file exists?

I want to write a script to see if various files exist. What I want to do is have the script search in various directories if a file exist, and if not, then output something like "/path/file does not exist". I don't actually know of how to check and see if a file exists or not. What I have in mind... (2 Replies)
Discussion started by: astropi
2 Replies

5. Shell Programming and Scripting

How to check if a file exists in a directory?

I want to perform SQL *Loader operation only if a file named "load.txt" exists in a directory "/home/loc/etc". Please help how to check this with a if condition. (8 Replies)
Discussion started by: vel4ever
8 Replies

6. Shell Programming and Scripting

Check whether file exists in directory

Hi guys, I am beginner trying to learn unix. So any help is welcomed. My requirement is to check whether is a file exists in a particular directory or not. The directory path and filename are taken dynamically with user interaction. So the program should continue only if the $filename... (1 Reply)
Discussion started by: maris_markur
1 Replies

7. Shell Programming and Scripting

Check if file exists or not

Hi, I want to check if the file exists or not in the directory. i am trying below code but not working. File="/home/va59657/Account_20090213*.dat" echo "$File" if ]; then echo "file found" else echo "file not found" fi However i am getting file not found even if file exits as... (5 Replies)
Discussion started by: Vivekit82
5 Replies

8. Shell Programming and Scripting

How to check more than 1 file specified files exists?

Hi all, One of my script crated created 2 files in a dirs Output.log and Output.tmp. Now in another script i need to check if both of the above mentioned files are present in a directory or not. I know to check one file but need to check both the files. Anyone could please tell me how... (3 Replies)
Discussion started by: girijajoshi
3 Replies

9. Shell Programming and Scripting

To check if file exists

Hi, I have the below code written. However I am not getting the desired output I am checking if the particular path has file in it. #!/bin/bash ls -l /IRS2/IRS2_ODI/INFILE/*LS* 1>/dev/null 2>/dev/null if then echo $? echo "File Exists" fi ... (3 Replies)
Discussion started by: Shanmugapriya D
3 Replies

10. UNIX for Beginners Questions & Answers

Check if file exists

I need to check whether a file exists and has been changed. The file should contain a specific string. The file should also have been changed within the last ten seconds. How do I do that? (3 Replies)
Discussion started by: locoroco
3 Replies
Goo::Canvas::Ellipse(3pm)				User Contributed Perl Documentation				 Goo::Canvas::Ellipse(3pm)

NAME
Goo::Canvas::Ellipse - wrapper for GooCanvasEllipse HIERARCHY
Glib::Object +----Goo::Canvas::ItemSimple +----Goo::Canvas::Ellipse INTERFACES
Goo::Canvas::Item METHODS
item = Goo::Canvas::Ellipse->new ($parent, $center_x, $center_y, $radius_x, $radius_y, ...) o $parent (Goo::Canvas::Item) o $center_x (double) o $center_y (double) o $radius_x (double) o $radius_y (double) o ... (list) PROPERTIES
'center-x' (double : default 0 : readable / writable) The x coordinate of the center of the ellipse 'center-y' (double : default 0 : readable / writable) The y coordinate of the center of the ellipse 'height' (double : default 0 : readable / writable) The height of the ellipse 'radius-x' (double : default 0 : readable / writable) The horizontal radius of the ellipse 'radius-y' (double : default 0 : readable / writable) The vertical radius of the ellipse 'width' (double : default 0 : readable / writable) The width of the ellipse 'x' (double : default 0 : readable / writable) The x coordinate of the left side of the ellipse 'y' (double : default 0 : readable / writable) The y coordinate of the top of the ellipse SEE ALSO
Glib::Object, Goo::Canvas::ItemSimple COPYRIGHT
Copyright (C) 2011 Gtk2-Perl Team perl v5.14.2 2011-11-16 Goo::Canvas::Ellipse(3pm)
All times are GMT -4. The time now is 12:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy