Sponsored Content
Top Forums Shell Programming and Scripting trying to view contents of an existing script Post 302604163 by slashbash on Saturday 3rd of March 2012 11:57:46 AM
Old 03-03-2012
trying to view contents of an existing script

Code:
root#pwd
/opt/tools

root# cat check_traffic
/opt/tools/utils/commands $1 /opt/tools/utils/DIR/check_traffic

root# cat /opt/tools/utils/DIR/check_traffic
gew "check_traffic -v"

Hi above script works for checking traffic for an ip address im trying to view the check_traffic script by cat'ing it but I get the above error, can anyone help please? im logged in as root on solaris 8
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unable to view contents of a directory

Hi, first post here be gentle. Very new to Unix. Using HP-UX 10.20 I CD into a remote directory on one machine $ cd /net/remote hostname yet when I do an ll in this directory none of the contents appear. It just is empty. when I do the same command from another machine, $ cd... (13 Replies)
Discussion started by: maddave
13 Replies

2. Programming

view contents of shared library

Hi , i have two doubts in Hp-Ux 1) How to View objects or contents in a shared library in HP-Ux 2) Can i added a c object file to the existing shared file from a different directory . for example : I have two directories X and Y I have a.o b.o c.o object files in X directory I... (4 Replies)
Discussion started by: naren_chella
4 Replies

3. Shell Programming and Scripting

How to view the contents of .gz file without extracting the file?

Hi All, I have several .gz files and i need to see the contents of these file, without extracting these file. If i extract these file the space will be full so. I need to see the contents and parse the contents to a script to extract data from these. Please let me know if you need any more... (10 Replies)
Discussion started by: amitkhiare
10 Replies

4. Solaris

Add existing user into an existing group

Pre: no gpasswd/adduser there is just usermod can be used, also there is no -a option for usermod. How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies

5. Shell Programming and Scripting

Bash copy file contents into an existing file at a specific location

Hi all I need to copy the entire contents of one file into an existing file at a specific location. I know the exact line number where I need to put it. It appears I would use either sed or awk to do this, but I have been unsuccessful so far: File A line 1 line 2 line 3 line 4 ... (6 Replies)
Discussion started by: gshepherd7
6 Replies

6. Shell Programming and Scripting

insert pipes for existing and non-existing records

I have a source file like this, L4058S462 34329094 F51010141TK1070000483L4058S462 34329094 0232384840 381892 182 5690 L4058S462 34329094 F51020141FIRST CLEARING, LLC A/C 3432-9094 L4058S462 34329094 F51030141JOHAN HOLMQVIST ... (1 Reply)
Discussion started by: saravanamr
1 Replies

7. HP-UX

[Solved] How to view the contents of the .depot files

Hi, I have one depot file. I would want to view the contents of this file with out extracting and with out installing in a machine. Like for $rpm -qlp rpmfilename will list out all the files in a rpm. Like I would want a command to view the files from a .depot file. I tried with swlist... (2 Replies)
Discussion started by: skmdu
2 Replies

8. UNIX for Advanced & Expert Users

Using vim to view the contents of a directory

When I use this command: vi /home/bob/.vimI expect to see. " ============================================================================ " Netrw Directory Listing (netrw v149) " /home/bob/.vim " Sorted by name " Sort sequence:... (4 Replies)
Discussion started by: cokedude
4 Replies

9. UNIX for Beginners Questions & Answers

View file contents created by dbCAmplicons as tab delimited

I have run the following command : od -c Results_May18.fixrank | head Here is the result. I wanted the results in tab delimited. Thanks $ od -c Results_May18.fixrank | head 0000000 M 0 1 6 0 1 : 1 2 9 : 0 0 0 0 0 0000020 0 0 0 0 - A T T D Y ... (2 Replies)
Discussion started by: Benard
2 Replies

10. Shell Programming and Scripting

View all jar files contents in one go ?

I can view a jar file contents using the below command: $ jar -tvf ./checker-compat-qual-2.0.0.jar 0 Mon May 02 18:28:46 IST 2016 META-INF/ 184 Mon May 02 18:28:44 IST 2016 META-INF/MANIFEST.MF 0 Mon May 02 17:20:16 IST 2016 afu/ 0 Mon May 02 17:20:16 IST 2016 afu/org/ ... (5 Replies)
Discussion started by: mohtashims
5 Replies
ELIOMC(1)						      General Commands Manual							 ELIOMC(1)

NAME
eliomc, eliomcp, eliomopt, js_of_eliom, eliomdep - the eliom build tools SYNOPSIS
eliomc [options] files eliomcp [options] files eliomopt [options] files eliomdep [options] files js_of_eliom [options] files -o filename.js DESCRIPTION
eliomc, eliomcp and eliomopt are wrapper around the OCaml compiler that ease the compilation of the server part of projects based on the Eliom framework. They respectively accept the same set of option than the ocamlc(1),ocamlcp(1) and ocamlopt(1) compilers plus the specific ones described in the OPTIONS section. js_of_eliom is a wrapper around the OCaml and Js_of_ocaml compilers that ease the compilation of the client part of projects based on the Eliom framework. It accepts the same set of option than the ocamlc(1) compiler plus the specific ones described in the OPTIONS section. eliomdep is a wrapper around ocamldep(1) that handles dependencies of an .eliom source files. It accepts the same set of options plus the specific ones described in the OPTIONS section. Warnings: this tools is still limited and do not handle dependencies towards an .eliom files. COMPILING ELIOM SOURCE FILES
The compilation of files with a .eliom extension is achieved in three steps: infer the type of value sent by the server to the client; com- pile the server part of the code and compile the client part. The first two steps can be realised with eliomc and the last one with js_of_eliom. Both tools produce a .cmo file named as the original .eliom file. To avoid overwriting the .cmo representing the server part with .cmo of the client part, files generated by eliomc or eliomopt are stored by default in a subdirectory named _server and files generated by js_of_eliom are stored in a subdirectory named _client. Those default directories could be respectively overridden by the environment vari- ables ELIOM_SERVER_DIR and ELIOM_CLIENT_DIR. The types infered by eliomc for values sent by the server to the client are stored in an intermediate files named as the original .eliom file and whose extension is .type_mli. That file is required by js_of_eliom for compiling the client part of the .eliom file. The eliomdep tool correctly generate dependencies that intermediate file for the server .cmo and the client .cmo. OPTIONS
-dir <dir> Specify the target directory for generated files -package <name> This is the same option as the ocamlfind one. -predicates <p> This is the same option as the ocamlfind one. -ppopt <opt> Append <opt> to preprocessor invocation. -jsopt <opt> Append <opt> to js_of_ocaml invocation (js_of_eliom only). -infer <opt> For .eliom file, only generate the intermediate .type_mli file (eliomc and eliomopt only). -noinfer <opt> For .eliom file, do not generate the intermediate .type_mli file (eliomc and eliomopt only). -help or --help Display a short usage summary and exit. EXAMPLES
The compilation of an Eliom projects composed of a server specific file named server.ml, a client specific file named client.ml and two common files name base.eliom and main.eliom, could be achieved with the following commands: eliomc -a -o appl.cma server.ml base.eliom main.eliom js_of_eliom -o appl.js client.ml base.eliom main.eliom To avoid recompiling the whole project each times, this could be split in multiple steps: eliomc -c server.ml eliomc -c base.eliom eliomc -c main.eliom eliomc -a -o appl.cma _server/server.cmo _server/base.cmo _server/main.cmo js_of_eliom -c client.ml js_of_eliom -c base.eliom js_of_eliom -c main.eliom js_of_eliom -o appl.js _client/client.cmo _client/base.cmo _client/main.cmo SEE ALSO
ocamlc(1), ocamlopt(1), js_of_ocaml(1), ocamlfind(1), ocamlcp(1), ocamldep(1). AUTHOR
eliomc, js_of_eliom, eliomdep and eliomopt were written by Gregoire Henry <gregoire.henry@pps.jussieu.fr>. This manual page was written by Pierre Chambart <chambart@crans.org>. 2012-02-15 ELIOMC(1)
All times are GMT -4. The time now is 03:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy