LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2006, 03:31 PM   #16
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47


Another interesting point.

I write all letters using the Open Office wordprocessor. It is in the folder called 'Documents'

I have a file or rather a letter called ' Access-Lists1.sxw '

This is about Cisco's Access Control Lists. I am sure peole who work with Cisco routers or rather networking are aware of those Access Control Lists.


/home/nissanka/Documents/Access-Lists1.sxw




------------------------------------------------------

[nissanka@c83-250-110-112 ~]$ ./rim5 'Access-Lists1.sxw'
./rim5: line 11: $: command not found
cat: Access-Lists1.sxw: No such file or directory
[nissanka@c83-250-110-112 ~]$
-------------------------------------------------------

Why didn't it find the file? Is it because the file is in another folder? It is not in the ' /home/nissanka ' folder.

It finds the files in ' /home/nissanka ' directory.


----------------------------------------------------

[nissanka@c83-250-110-112 ~]$ pwd
/home/nissanka
[nissanka@c83-250-110-112 ~]$
-----------------------------------------------------





I went into the ' Documents ' directory

[nissanka@c83-250-110-112 ~]$ cd Documents
[nissanka@c83-250-110-112 Documents]$

[nissanka@c83-250-110-112 Documents]$ ./rim5 Access-Lists1.sxw
bash: ./rim5: No such file or directory
[nissanka@c83-250-110-112 Documents]$

No, it didn't find.

Do you have any clue?

Last edited by Gins; 07-28-2006 at 03:37 PM.
 
Old 07-28-2006, 03:47 PM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The script must be able to access the file, this can be done in 2 ways:

1) execute the script from within the directory the document is in. I.e:

cd /home/nissanka/Documents
/home/nissanka/rim5 Access-Lists1.sxw

2) execute the script and give it the file including the complete path. I.e:

./rim5 /home/nissanka/Documents/Access-Lists1.sxw

In the above example you could use the relative path. rim5 is in /home/nissanka, so you could do: ./rim5 Documents/Access-Lists1.sxw

PS: sxw files are not plain text and catting them could result in a none operational terminal.

Hope this helps.
 
Old 07-28-2006, 03:58 PM   #18
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Druuna, as I said you are a clever Dutchman.


The following worked fine.


./rim5 /home/nissanka/Documents/Access-Lists1.sxw


The file is in binary format. So it is illegible.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
Solaris - Questions! Questions! Questions! qs_tahmeed Solaris / OpenSolaris 2 07-16-2005 05:27 AM
window manager questions and/or theme questions t3gah Linux - Software 2 02-27-2005 04:16 PM
more questions vengefuldeath87 Slackware 2 08-01-2004 08:58 PM
several questions Mr. D. Linux - Newbie 2 09-13-2003 11:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration