The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Deleting lines inside a file without opening the file toms Shell Programming and Scripting 3 09-24-2007 07:58 AM
Opening a file during FTP ceaker High Level Programming 1 04-01-2006 02:40 AM
Making Changes without opening file irehman Shell Programming and Scripting 9 03-16-2006 10:13 AM
delete file without opening vi lweegp UNIX for Dummies Questions & Answers 7 01-25-2006 02:23 PM
File Opening in C++ in Unix Env skannan High Level Programming 0 06-15-2002 08:10 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-30-2004
hiei hiei is offline
Registered User
  
 

Join Date: Mar 2004
Posts: 12
opening a file

im trying to open a file in my bin directory and the farthest i can get is into the folder but not the actual file itself i use text edit as the editor. when i try to open the file it says it doesn't exist here is what i type



cd bin
open cmnds (dir. which it is under)
open test
no such file


am i missing something or is that the farthest i can go to opening a file
  #2 (permalink)  
Old 03-30-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
"test" is the name of a Unix command, so it could be causing conflict.

Rename the file to something other than "test" and see if that helps.
  #3 (permalink)  
Old 03-30-2004
hiei hiei is offline
Registered User
  
 

Join Date: Mar 2004
Posts: 12
it still won't open it i changed it to a bunch of different names i tried

open -adg
open -a adg


(btw adg is the new name)

i don't understand, perhaps adg is a command to?
  #4 (permalink)  
Old 03-31-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
I've never used "Text Edit", but you could try opening the file in a standard editor like "vi". Open a shell, and type

Code:
vi /path/to/file/file_name
Once vi launches, press ESC, then type
Code:
:q
to exit straight away. That should at least prove if the file is "openable".

Also, check your permissions on the file,
Code:
ls -l /path/to/file/file_name
The permissions should at least be something like -rw-r--r-- or whatever, depending on your umask.

Cheers
ZB
http://www.zazzybob.com
  #5 (permalink)  
Old 04-01-2004
HOUSCOUS HOUSCOUS is offline
Registered User
  
 

Join Date: Feb 2002
Location: Houston TX
Posts: 123
I am not so sure when you said "open" it. Doesn't the command "open" mean to start a program on a new terminal? Are you sure the file is there? If you want to run it, why just try "./file"? Or if you want to read the file content, use cat, more, or some editor such as vi/vim, emacs.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0