06-12-2008
script invokation issue
my problem is :
i have a small script automising the firefox invokation from my $HOME/bin
directory:
**********************
set FIREFOX_PATH='/tools/openbin/firefox/2.0.0.3/sparc-sun-solaris8'
set GTK_LIB_PATH='/tools/openbin/gtk+/1.2.10/sparc-sun-solaris8/lib'
set GLIB_LIB_PATH='/tools/openbin/glib/1.2.10/sparc-sun-solaris8/lib'
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$FIREFOX_PATH;
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$GTK_LIB_PATH;
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$GLIB_LIB_PATH;
cd $FIREFOX_PATH
./firefox-bin &
cd
***********************
my question is
case:1
when i invoke the script sourcing it
source start_firefox.sh
it works
**********************
case:2
when i do from $hOME/bin
tcsh start_firefox.sh
.......it works
*******************
case:3
but when i do from $HOME/bin..here the script resides
./start_firefox.sh
error messages are coming like
*********
csbu061 [mhalder] 206: ./start_firefox.sh
./start_firefox.sh: setenv: not found
./start_firefox.sh: setenv: not found
./start_firefox.sh: setenv: not found
./start_firefox.sh: ./firefox-bin: not found
....i can understand its working while sourcing but i am confused why its working in the 2nd case while its not working in the 3 rd case
...please make me clear abt this
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am working on a script that checks two arguments at the command line. The first argument is a search pattern, the second can be a file or a directory, if it is a file a second script is called that checks it for the search pattern. If the second argument is a directory, it checks for the search... (5 Replies)
Discussion started by: Breakology
5 Replies
2. Shell Programming and Scripting
#!/bin/ksh
set -x
SQLSTR="LOGIN/PASSWORD"
sqlplus -s ${SQLSTR} @<<EOF
set pagesize 0 feedback off verify off heading off echo off;
UPDATE TABLE NAME
SET VALUE = VALUE + 1
where VALUE2 = 'ABCDE';
exit;
COMMIT;
EOF
i am not able to update the column and not able to exit from sqlplus. ... (7 Replies)
Discussion started by: karthicss
7 Replies
3. Shell Programming and Scripting
Hello All,
I am ruuning the below script.
userchecking.sh
###########################
#! /bin/ksh
NIS_SCRIPT_HOME="/mot/systems/NIS_SCRIPT_NEW"
. $NIS_SCRIPT_HOME/common.env
WORK_DIR="/mot/systems/scripts/"
#WORK_DIR="/mot/b36376/myscripts/nis_user_automation"... (1 Reply)
Discussion started by: ajaincv
1 Replies
4. Shell Programming and Scripting
#!/bin/bash
###########################################
ADMIN="usera@mblonline.com"
AMQ="userb@mblonline.com"
SUBJECT="Remote Shutdown Client Status"
MAIL="/bin/mail"
###########################################
DAT=`date '+%d-%b-%Y'`
PLUGIN="/usr/lib/nagios/plugins/check_nrpe"
PORT="5666"... (2 Replies)
Discussion started by: telnor
2 Replies
5. Shell Programming and Scripting
#!/bin/ksh
i=1
while
do
j=0
while
do
echo "$i"
j =`expr $j + 1`
done
i=`expr $i + 1`
done (19 Replies)
Discussion started by: targetshell
19 Replies
6. Shell Programming and Scripting
Hi Folks,
I am going through a sample script which is not working.
Also i want to understand the certain syntaxes
#!/bin/sh
clear
x="y"
echo "enter ur 1st no."
read n1
echo "enter ur 2nd no."
read n2
while
do
clear
echo "1.sum"
echo "2.subtraction"
echo "3.product"... (3 Replies)
Discussion started by: rafa_fed2
3 Replies
7. Shell Programming and Scripting
I am trying to run a script which ftp the files from one server to another.
Below is the script -
#!/bin/bash
echo "Please enter no : "
read variable
echo "You entered: $input_variable"
host=xxxxx
USER=xxx
PASSWORD=xxx
ftp -inv $HOST <<EOF
user $USER $PASSWORD
cd... (4 Replies)
Discussion started by: chandraprakash
4 Replies
8. Shell Programming and Scripting
I developed a script to group by 1st column and sum few of the column which are required, but while executing sum of 2nd column which has decimals in place is not getting correct sum. below is the script
awk -F, '{a+=$2;b+=$33;c+=$58;d+=$11;e+=$50;}END{for(i in a)printf... (2 Replies)
Discussion started by: rramkrishnas
2 Replies
9. Shell Programming and Scripting
Hi,
I am running below script using autosys.
Though the script is running fine, it fails the workflow but the autosys job shows success.
Can you please let me know where can i make change to script:-
#!/bin/ksh
#to test mail from directory
set -x
frequency=$1
param_file=/local/test... (4 Replies)
Discussion started by: rajrishi990
4 Replies
10. Shell Programming and Scripting
Hello,
I have the following script that just archives and clears some log files.
#!/bin/bash
# script: archive_logs_and_clear
# add date to logfile names and copy archive directory
# clear logs
# change to script directory
cd ... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
LEARN ABOUT POSIX
firefox
FIREFOX(1) Linux User's Manual FIREFOX(1)
NAME
firefox - a Web browser for X11 derived from the Mozilla browser
SYNOPSIS
firefox [OPTIONS] [URL]
DESCRIPTION
Mozilla Firefox is an open-source web browser, designed for standards compliance, performance and portability.
USAGE
firefox is a simple shell script that will set up the environment for the actual executable.
OPTIONS
A summary of the options supported by firefox is included below.
GTK options
--gdk-debug=FLAGS Gdk debugging flags to set
--gdk-no-debug=FLAGS
Gdk debugging flags to unset
--gtk-debug=FLAGS
Gtk+ debugging flags to set
--gtk-no-debug=FLAGS
Gtk+ debugging flags to unset
--gtk-module=MODULE
Load an additional Gtk module
X11 options
--display=DISPLAY
X display to use
--sync Make X calls synchronous
--no-xshm
Don't use X shared memory extension
--xim-preedit=STYLE
--xim-status=STYLE
--g-fatal-warnings
Make all warnings fatal
Firefox options
-h, -help
Show summary of options.
-height value
Set height of startup window to value.
-width value
Set width of startup window to value.
-v, -version
Print /usr/bin/firefox-bin version.
-CreateProfile profile
Create profile.
-P profile
Start with profile.
-ProfileManager
Start with profile manager.
-UILocale lang-region
Start with lang-region resources.
-contentLocale lang-region
Start with lang-region resources.
-remote command
Execute command in an already running Firefox process. For more info, see: http://www.mozilla.org/unix/remote.html
-no-remote
Don't try to control an already running instance.
-jsconsole
Start with Javascript Console
-chrome url
Load the specified chrome.
-new-window url
Open URL in a new window if Firefox is already running.
-new-tab url
Open URL in a new tab if Firefox is already running.
-preferences
Open Firefox preferences menu.
-safe-mode
Disables extensions and themes for this session.
FILES /usr/bin/firefox - shell script wrapping firefox
/usr/lib/firefox/firefox - firefox executable
VERSION
3.0
BUGS
To report a bug, please visit http://bugzilla.mozilla.org/
SEE ALSO
mozilla(1)
AUTHORS
The Mozilla Organization
http://www.mozilla.org/about.html
firefox January 04, 2006 FIREFOX(1)