Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is Script Windows or Unix Based (NEWBIE)?

Status
Not open for further replies.

Jables

Programmer
Aug 28, 2001
148
US
How do I know if a script is written only for Windows servers? Tech support at my web-host insists that scripts run on the site must be written exclusively for windows-based servers (i.e. no cross-platform scripts). I'm mainly trying to use scripts that I get for free off the internet, and most of them (not all) say for which platform they're written. But is there something inherent in the code that would tell me?
 
I am strictly a *nix kind of guy, but I would guess the major difference is filesystem access (writing, reading, etc). The other will most likely by the shebang line (#!/usr/bin/perl vs. #!C:\perl5\bin\perl.exe).

Many times, if a script does not access the filesystem by way of writing to files or accessing them, the script will more than likely be Windows compatible (just make sure the shebang line is right).

There may be some differences with how libraries/modules are accessed and used. This one I don't know for sure.

Chad. ICQ: 54380631
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top