I am guessing: On the problem box, there is a spurious non-printing character in the environment variable(s) you have defined. I do not know what you have defined, but if you have local (Ex: .bashrc) files or other "hidden" files sprinkled around you have to validate them to locate where you picked up the garbage.
I have file named script1 as follows:
#!/bin/bash
count="0"
echo "hello"
echo "$count"
while
do
echo "$count"
count=`expr $count + 1`
done
-----------
when I run it, I get
./script1: line 9: syntax error near unexpected token `done'
./script1: line 9: `done'
I... (6 Replies)
hello everybody,
as many, I have a problem with a script...
I wrote a shell script in which I want to read a variable value. the problem is that I can't use the arrow keys.
Here is the script I use :
#!/bin/bash
stty erase ^H
read foune
echo "$foune"
exit 0;
the problem is... (2 Replies)
Hi All,
Linux lxs3er06 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
Issue:
While executing shell scripts in bash shell, following error messages are thrown:
rm:command not found
On doing little investigation, I added '/bin' to $PATH and on doing echo... (9 Replies)
Hi,
This is my program.
#!/bin/bash
today=`date +"%b-%d-%Y"`
SERVICE="pbxconnect.php"
if ; then
echo "pbx program is running"
else
nohup php pbxconnect.php > logpbx-$today.txt &
fi
On executing using "sh myprogram.sh" , i get the following error.
myprogram.sh: line 4: '
My... (7 Replies)
PLEASE HELP!
NEED LINUX SCTIPT
Need to write a bash shell script to show information of employees of a department from a company data set.
The script should accept a project number (1/2/3/10/20/30) and output
* the name of the project
* the name of the manager of the controlling... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a bash shell script that presents work information of employees of a department from a company data... (1 Reply)
Hello All,
I am trying to gather output of df -k from remote server to local server using below line:
rsh <host> df -k >/tmp/space_remote_host.txt
Why above throws following error message:(I've deleted the IP address in below chunk)
connect to address ..: Connection refused
Trying... (2 Replies)
Migrating Unix batch jobs (Korn Shell) running in HP-UX server to Linux environment.
Hi All
Please help me to understand the easiest way to migrate Kernel Shell scripts to Linux Bash. Also let me know
1. Any automated scripts or tools available for this.
2. Challenges and issues... (5 Replies)
I am trying to initialize a file name in bash but not having much luck. For example, one of my bash scripts outputs a file named "FILE_1000G.vcf". I would like to rename FILE to match with the user's name. This is my code:
set -e
echo "Please enter your filename:"
read filename
rename... (6 Replies)
I have a csv file that looks like this
Name,Food,Sport
James,Curry,Gym
Darren,Pizza,Football
Jim,Fish,Hockey
James,Sushi,Tennis
My code looks like this
IFS=","
sed 1d $file_name | while read Name Food Sport
do
mkdir -p $Name
#echo "=================="
#echo "Name: $Name" (3 Replies)
Discussion started by: darklord173
3 Replies
LEARN ABOUT HPUX
ldd_ia
ldd_ia(1) General Commands Manual ldd_ia(1)NAME
ldd_ia: ldd - list dynamic dependencies of executable files or shared libraries on Integrity systems
SYNOPSIS
filename...
Remarks
This manpage describes on Integrity systems. For on PA-RISC systems, see ldd_pa(1).
DESCRIPTION
is a command that can list the dynamic dependencies of incomplete executable files or shared libraries.
lists verbose information about dynamic dependencies and symbol references. If the object file is an executable file, lists all shared
libraries that would be loaded as a result of executing the file. If it is a shared library, lists all shared libraries that would be
loaded as a result of loading the library.
uses the same algorithm as the dynamic loader and to locate the shared libraries at runtime. See in dld.so(5) for more information.
Options
recognizes the following options:
Check reference to data symbols.
Check reference to data and code symbols.
Display the search path used to locate the shared libraries.
Display all dependency relationships.
EXTERNAL INFLUENCES
Environment Variables
uses the following environment variables to locate shared libraries.
These environment variables can be used to specify the directories to be searched for library files at runtime.
The value is a colon-separated list of paths of such directories. For more information, see in dld.so(5) or the option in
ld(1).
The following internationalization variables affect the execution of
Determines the locale category for native language, local customs and
coded character set in the absence of and other environment variables. If is not specified or is set to the empty string, a
default of (see lang(5)) is used instead of
Determines the values for all locale categories and has precedence over
and other environment variables.
Determines the locale that should be used to affect the format
and contents of diagnostic messages written to standard error.
Determines the locale category for numeric formatting.
Determines the locale category for character handling functions.
Determines the location of message catalogs for the processing
of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to See envi-
ron(5).
DIAGNOSTICS
prints the record of shared library path names to stdout. The optional list of symbol resolution problems are printed to stderr.
returns zero when the operation is successful. A non-zero return code indicates that an error occurred.
EXAMPLES
By default prints a simple dynamic path information. This consists of the dependencies recorded in the executable (or the shared library)
followed by the physical location where these libraries are found.
The option causes to print dependency relationship along with the dynamic path information.
The option to causes it to analyze all symbol references and print information about unsatisfied code and data symbols.
WARNINGS
does not list shared libraries explicitly loaded using dlopen(3C) or shl_load(3X).
FILES
output file
32-bit Integrity system dynamic loader
64-bit Integrity system dynamic loader
32-bit dummy executable loaded to check the dependencies of shared libraries
64-bit dummy executable loaded to check the dependencies of shared libraries
message catalog
SEE ALSO
System Tools
ld(1) invoke the link editor
Miscellaneous
a.out(4) assembler, compiler, and linker output
dld.so(5) dynamic loader
Texts and Tutorials