All,
I don't think it has been asked after scout through the question here. Here are my problem:
I'm using Ubuntu 14.04. I've developed a script to be run by ruby-2.1.2. I've included the shebang line
#!/usr/bin/env ruby
in the script header and…
When I have a scala program as a shell script that pulls from a package, if I modify that package, the shell script can't see the changes, even though I recompiled.
Here is a very simple example:
one.scala:
package myPackage
object one {
val value…
I've started a new project in which I like to used the current version of PHP (5.5.12). I compiled this version myself because the version of my distro is 5.3.
I need propel ORM so I installed it via composer.
Now, the propel-script uses this…
I am attempting to execute my script (on my Dreamhost server) with Python 2.7. Currently when I access my script it is run by Dreamhost's default version of Python 2.6.6. I have attempted to make sure the script is run under Python 2.7 using this…
i have below code to print the QUERY_STRING data to text file in new line
#!/bin/sh
echo "Content-type: text/html"
echo ""
read QUERY_STRING
echo $QUERY_STRING > /test
eval $(echo…
This is a pretty simple one... I just want to make a perl script executable without the preceding perl command, and instead let the environment deduce the interpreter from the shebang line. Here is my sample script called test:
#!/usr/bin/perl
print…
I write my Perl code in Textpad (which I believe is only avai in Windows). I run it on Linux cmd prompt by calling the Perl interpreter explicitly, e.g. "perl script.pl". I was wondering if it's possible to run it simply as in "./script.pl". When…
I want use erl_tidy to format erlang code, including escript files.
But this comes out when I format one escript file (source) after adding -module(erl_pprint). :
1> erl_tidy:file("erl_pprint").
erl_pprint: error: cannot determine module name.
**…
I want to do something like that in php (running on apache2):
require("somecgi.py")
where somecgi.py is a python file with a valid shebang. My apache is configured to execute the cgi-script when opened directly in brower. But i can't bring php to…
I'm running ActiveState Perl 5.10.1 on Windows XP.
The following program executes, but produces no output at the command line:
#!c:/perl/bin/perl.exe
use strict;
use warnings;
print "foo\n";
If I remove the shebang line, I get 'foo' shown as the…
Here is our test script...
#!/bin/bash
echo "Hello World"
It is on an NFS share that is mounted on a Linux client. If we call the script like this:
./testscript.sh
then we get this:
sh: ./testscript.sh: Permission denied
If we call it like…
I am following an example from CUNY and I have never done anything with C before so I probably don't know what I am doing.
Consider the program below.
Do I need a shebang line for C code written in emacs?
When I go to compile using the line gcc -g…
I have simple script interpreter written in Python that processes a script written in a text file. I can refer to the interpreter using a shebang at the top of the script so that I can then execute the script directly.
The interpreter has some logic…
I wrote a script todo.rb, whose first line is #!/usr/bin/env ruby. However, running this script gives the following error:
λ ~/ ruby todo/todo.rb
/Users/xjia/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in…
I've recently switched to the ksh93 shell. I did this by adding the following two lines to my .profile file
export SHELL=/usr/local/bin/ksh93
exec $SHELL
Since I did that some simple scripts have started misbehaving in a way I don't understand. I…