How to make a script (Bash, KornShell, etc.) executable by mouse clicking?
Hello everybody,
Is there any way to make a script (Bash, KornShell, etc.) executable
by mouse clicking?
For example you have a file myscript.sh, you run:
Therefore it becomes executable and all you need is to run from
the terminal:
However, I've seen that there are scripts that can be run only by
clicking on the icon file instead of running the script in the
terminal. How should I proceed in order to run the script that way?
I'm trying to set up a form mail script on a website that when Submitted, a cgi script is executed and a perl translator (located in a secured and inaccessible folder) translates the script. After speaking to my hosting provider, I was told to "Telnet into the system and make the script... (2 Replies)
I have a script in my home direcroty which upon execution gives the essential system information like memory,cpu etc and is currently owned by root:root. Now I want to see that every non root user will run this file and grab the reqired system info. I know this is some thing associated with chown... (2 Replies)
Is is possible to use the mouse in Terminal on OS X Leopard? I thought I read somewhere in the book that I have that it is, but I can't find it. I'd like to use it to click in one of the editors if I have to. (0 Replies)
Hello everybody,
I'm unable to make my shell script an executable file.
The details are as follows:
PATH includes my $HOME/bin i.e. /rchome/rc1/bin
HOME directory is /rchome/rc1
script name is prep_mig.sh permissions set are 755
It's executing if I give below command
sh prep_mig.sh
but... (4 Replies)
Hello Forum Memebers,
I have file with exension of .shsrc ie(startA.shsrc) .while iam trying to make ,its getting Ksh not found.
file:startA.shsrc
error:KSH not found
the content about shell declaration in the korn shell is below.
... (3 Replies)
Hey guys, so I've been trying to write a bash script called runSorter.sh that runs an executable that also takes in some parameters and outputs the results to a text file. The executable, sorter, takes in a number parameter. I want to make it so that you can input as many number parameters into... (4 Replies)
Hi here's my code
${ORACLE_HOME}/bin/sqlplus /nolog <<!EOF
--step 5 create db script start
set feedback off
set heading off
set echo off
conn / as sysdba
spool ${ORACLE_SID}_db_link.sql
SELECT 'CREATE '||DECODE(U.NAME,'PUBLIC','public ')||'DATABASE LINK '||CHR(10)... (2 Replies)
I wish to create an executable bash script that will run the following commands as root, that is, using sudo su
iptables-save | awk '/^
/ { print $1 }
/^:+ / { print $1 " ACCEPT" ; }
/COMMIT/ { print $0; }' | iptables-restoreMy first attempt at bash... (9 Replies)
Is there a way to make this make itself executable?
Thanks. :-)
cat > somescript.sh << \EOF
#!/bin/bash
block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}')
reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}')
perl -e... (4 Replies)
Discussion started by: drew77
4 Replies
LEARN ABOUT DEBIAN
ncurses5-config
ncurses5-config(1) General Commands Manual ncurses5-config(1)NAME
ncurses5-config - helper script for ncurses libraries
SYNOPSIS
ncurses5-config [options]
DESCRIPTION
This is a shell script which simplifies configuring applications against a particular set of ncurses libraries.
OPTIONS --prefix
echos the package-prefix of ncurses
--exec-prefix
echos the executable-prefix of ncurses
--cflags
echos the C compiler flags needed to compile with ncurses
--libs echos the libraries needed to link with ncurses
--version
echos the release+patchdate version of ncurses
--abi-version
echos the ABI version of ncurses
--mouse-version
echos the mouse-interface version of ncurses
--bindir
echos the directory containing ncurses programs
--datadir
echos the directory containing ncurses data
--includedir
echos the directory containing ncurses header files
--libdir
echos the directory containing ncurses libraries
--mandir
echos the directory containing ncurses manpages
--terminfo
echos the $TERMINFO terminfo database path, e.g.,
/etc/terminfo
--terminfo-dirs
echos the $TERMINFO_DIRS directory list, e.g.,
/etc/terminfo:/lib/terminfo:/usr/share/terminfo
--termpath
echos the $TERMPATH termcap list, if support for termcap is configured.
--help prints this message
SEE ALSO ncurses(3NCURSES)
This describes ncurses version 5.9 (patch 20110404).
ncurses5-config(1)