LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2005, 11:13 AM   #1
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Rep: Reputation: 30
sh extension


I was going through one server and it had the file domain.sh which I could copy to my PC and it had some php code and some encoded code.

But on another server, same location, it seems it was a shortcut because on WinSCP, right-click > properties it shows "Links to xxx/xxx/xxx/domain.php"

What is this sh file type ?

Thanks
 
Old 12-29-2005, 11:21 AM   #2
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Rep: Reputation: 15
File extensions in Unix have no contextual meaning as they do in Windows, as far as I am aware.
There are a few exceptions, but largely differing file extensions are purely a means of organization and identification.
To that end, .sh files are shell scripts, and usually are meant to be run as:
$ sh domain.sh

Correct me if any of this is wrong?
 
Old 12-29-2005, 12:16 PM   #3
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
I was trying to execute commands listed here .
However, I was not successful.
Code:
[root@mywebserver bin]# sh domain.sh
domain.sh: line 2: ?php: No such file or directory
domain.sh: line 3: syntax error near unexpected token `"The file domain.php is part of Plesk distribution. It cannot be run outside of Plesk environment.\n"'
domain.sh: line 3: `    die("The file domain.php is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");'
[root@mywebserver bin]#
 
Old 12-29-2005, 12:53 PM   #4
denver1980
Member
 
Registered: Dec 2004
Location: Québec
Distribution: Gentoo, Kubuntu Karmic
Posts: 48

Rep: Reputation: 15
Quote:
I was trying to execute commands listed here .
However, I was not successful.

Code:
Code:
[root@mywebserver bin]# sh domain.sh
domain.sh: line 2: ?php: No such file or directory
domain.sh: line 3: syntax error near unexpected token `"The file domain.php is part of Plesk distribution. It cannot be run outside of Plesk environment.\n"'
domain.sh: line 3: `    die("The file domain.php is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");'
Googleized Plesk :
http://freshmeat.net/projects/plesk/
Quote:
Plesk is a multi-platform, Web-based software solution that simplifies and automates the administration of Linux, FreeBSD, and Windows servers. It helps Web hosting companies and their reseller clients deliver better, faster service to domain owners by sharing server management with them.

Last edited by denver1980; 12-29-2005 at 12:54 PM.
 
Old 12-29-2005, 01:12 PM   #5
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Apparently I had to type ./domain.sh in command line !
 
Old 12-29-2005, 01:13 PM   #6
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Solved.
Apparently I had to type ./domain.sh !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 05:19 PM
extension for openoffice 1.1 halitayarci Programming 0 07-01-2005 06:30 PM
Which extension do i dl? inspectreo Linux - Newbie 2 05-08-2005 05:07 PM
no glx extension kupek85 Linux - Software 7 09-23-2004 02:19 PM
.dsl extension? shmude DamnSmallLinux 2 05-19-2004 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration