03-19-2014
Can you show us the count from ls -1 /usr/bin | wc -l
10 More Discussions You Might Find Interesting
1. Programming
$ make
ksh: make: not found
Hello, when i use the "make" command in Solaris, it says the "make" command is not found!
Any help appreciated!
BobK (3 Replies)
Discussion started by: bobk544
3 Replies
2. Shell Programming and Scripting
Hi All,
I am trying to run a script to FTP files from one UNIX server to another UNIX server. Actually I can able to FTP file successfully by manually or paste whole script at prompt. But when I am trying to run script it is giving error.
Please let me know the cause.
#!/bin/sh... (3 Replies)
Discussion started by: nz80qy
3 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I am new to solaris world but worked in unix for a while . I have this solaris box version 8 .I am trying to run a simple unix file . Q.shl
cat Q.shl
#!/bin/ksh
db2 get connection state
When I run the file I get following error :
Q.shl
ksh: Q.shl: not found
This is... (6 Replies)
Discussion started by: capri_drm
6 Replies
4. Shell Programming and Scripting
Hi,
I have a strange problem and I'm sure its because I'm doing something stupid.
When I loop through all of the files in a directory they cannot be found.
Any help would be greatly appreciated.
Thanks,
-E
$ touch a.txt
$ touch b.txt
$ ls
a.txt b.txt
$ for f in `ls` ; do... (3 Replies)
Discussion started by: earls
3 Replies
5. Shell Programming and Scripting
I've a simple .sh file:
#!/bin/ksh
sort -t: -k 1.13,1.13 -k 1.16,1.29 sort.txt > output.txt
When i try to run this sort.sh file
./sort.sh
it gives me the error:
ksh: ./sort.sh: not found
I've tried the following:
1) echo $SHELL
/bin/ksh
2) echo $PATH... (4 Replies)
Discussion started by: kajal_ind
4 Replies
6. Shell Programming and Scripting
Hi all,
I need to replace certain robots.txt files with an empty file. I use the following to find the files I want to empty out:
find /Sites -type f -name "robots.txt" -exec grep -il "STAGE" {} \;
(finds all robots.txt files which contain the string 'STAGE')
Now what do I add to this... (3 Replies)
Discussion started by: Evert
3 Replies
7. Shell Programming and Scripting
Hi,
i used to run oracle queries in unix and then transfer the result in to csv files. it was working fine for a month.but today it showed an error like
ksh>dimens_minus_scpt.sh not found.
Can someone please help.
Thanks.
:wall: (4 Replies)
Discussion started by: varadharajan87
4 Replies
8. Shell Programming and Scripting
I have a config file with a bunch of these type of blocks:
<concat destfile="${standard.js.file}" append="true">
<filelist dir="${js.dir}/foo" files="foo.js, foo2.js"/>
<filelist dir="${js.dir}" files="foo3.js"/>
<filelist dir="${js.dir}/bar/js"... (11 Replies)
Discussion started by: Validatorian
11 Replies
9. Shell Programming and Scripting
I am using a perl file to run a batc job from unix prompt. I am inside the correct directory where the perl file is located. I can even find the file using ls command. But when I run the perl file , it says 'ksh: <perl_file.pl> not found'.
Could anyone please let me know what is wrong? (4 Replies)
Discussion started by: Subhasis
4 Replies
10. Shell Programming and Scripting
Hi, I have a control file which will contain all filenames(300) files. Loop through all the file names in the control files and check the existence of this file in another directory(same server). I need to infinitely(2 hrs) run this while loop until all the files are found. Once a file is found,... (5 Replies)
Discussion started by: laknar
5 Replies
GZEXE(1) General Commands Manual GZEXE(1)
NAME
gzexe - compress executable files in place
SYNOPSIS
gzexe name ...
DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a
penalty in performance). For example if you execute ``gzexe /usr/bin/gdb'' it will create the following two files:
-rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb
-rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~
/usr/bin/gdb~ is the original file and /usr/bin/gdb is the self-uncompressing executable file. You can remove /usr/bin/gdb~ once you are
sure that /usr/bin/gdb works properly.
This utility is most useful on systems with very small disks.
OPTIONS
-d Decompress the given executables instead of compressing them.
SEE ALSO
gzip(1), znew(1), zmore(1), zcmp(1), zforce(1)
CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the
PATH environment variable to find gzip and some standard utilities (basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail).
BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases,
using chmod or chown.
GZEXE(1)