10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am new to shell scripting so I assume there is something basic I am missing but I have not been able to figure it out. When I run the following code from a script it can't find the paths to the directory or files. I can literally cut and paste the commands into terminal and they work fine. Why... (2 Replies)
Discussion started by: TryAgain12
2 Replies
2. Shell Programming and Scripting
Hi! I just recently started messing around with Unix, but I've come upon one problem multiple times. Whenever I try to run a shell script, for example;
#! /bin/bash
#--------------------------------------
# example1
#--------------------------------------
echo "Hello, World!"
I... (5 Replies)
Discussion started by: SoapilyProne
5 Replies
3. Solaris
Hi,
I am getting below error in Solaris 10 SPARC when trying to issue a search on /var/tmp partition
Below is the query
/bin/find /var/tmp/ -type f -atime +1
Below is the result
/bin/find: stat() error <File> : No such file or directory (28 Replies)
Discussion started by: prash358
28 Replies
4. Shell Programming and Scripting
Hi,
After executing load_data.sh script , it completes the steps in script but give following error.Please let me know how to fix it.
./load_data.sh: ' missing
./load_data.sh: 0: not found
for i in 1 2 3
do
###some processing####
DLOG=$( eval echo \${TXPCY_${i}_DATA_FILE_LOG} )... (4 Replies)
Discussion started by: sandy162
4 Replies
5. Shell Programming and Scripting
Hi,
I have issued the below command to remove directories under a specific path, it removes them fine. But atlast it tries to
find the same directory and fails.
Directories:
/root/app/dir
/root/app/dir/files/
/root/app/dir/backup/
/root/app/dir/archive/
Command:
find... (1 Reply)
Discussion started by: vel4ever
1 Replies
6. Shell Programming and Scripting
Hello all
According to the following file (orignal one contains 200x times the same structure...) I was wondering if someone could help me to print <byte>??</byte> values
example, running this script/command like
./script.sh xxapp
I would expect as output: 102 116 112
./script.sh xxapp2... (2 Replies)
Discussion started by: cabrao
2 Replies
7. UNIX for Dummies Questions & Answers
hi,
I get this error when I compile my source on mac Leopard.
is because I need to configure openGL path ?
Monitor.h:15:60: error: GL/glut.h: No such file or directory
Monitor.h:16:60: error: GL/gl.h: No such file or directory
Monitor.C: In function 'void display2()':
Monitor.C:77:... (0 Replies)
Discussion started by: aneuryzma
0 Replies
8. UNIX for Dummies Questions & Answers
Good Day,
Im new to scripting especially awk and sed. I just would like to ask help from you guys about a sed command that prints the line immediately after a regexp, but not the line containing the regexp.
sed -n '/regexp/{n;p;}' filename
What if my regexp is 3 word or a sentence. Im... (3 Replies)
Discussion started by: ownins
3 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am using a shell script for SFTPing the files to target server. The problem which I am facing is that even if the files are not transferred, the script finishes successfully. I want the script to fail in case the remote directory does not exists.
The script which I am using is as... (1 Reply)
Discussion started by: shalini@@@
1 Replies
10. Shell Programming and Scripting
perl regexp error , I cant understand what is wrong
Hello all
I have simple perl regexp that is searching for pattern in string and replace it with the same string + addition string
here is what I have :
my $rec = q| new Array("Attributes Management" ... (4 Replies)
Discussion started by: umen
4 Replies
make(3erl) Erlang Module Definition make(3erl)
NAME
make - A Make Utility for Erlang
DESCRIPTION
The module make provides a set of functions similar to the UNIX type Make functions.
EXPORTS
all() -> up_to_date | error
all(Options) -> up_to_date | error
Types Options = [Option]
Option = noexec | load | netload | <compiler option>
This function first looks in the current working directory for a file named Emakefile (see below) specifying the set of modules to
compile and the compile options to use. If no such file is found, the set of modules to compile defaults to all modules in the cur-
rent working directory.
Traversing the set of modules, it then recompiles every module for which at least one of the following conditions apply:
* there is no object file, or
* the source file has been modified since it was last compiled, or,
* an include file has been modified since the source file was last compiled.
As a side effect, the function prints the name of each module it tries to compile. If compilation fails for a module, the make pro-
cedure stops and error is returned.
Options is a list of make- and compiler options. The following make options exist:
* noexec
No execution mode. Just prints the name of each module that needs to be compiled.
* load
Load mode. Loads all recompiled modules.
* netload
Net load mode. Loads all recompiled modules an all known nodes.
All items in Options that are not make options are assumed to be compiler options and are passed as-is to compile:file/2 . Options
defaults to [] .
files(ModFiles) -> up_to_date | error
files(ModFiles, Options) -> up_to_date | error
Types ModFiles = [Module | File]
Module = atom()
File = string()
Options = [Option]
Option = noexec | load | netload | <compiler option>
files/1,2 does exactly the same thing as all/0,1 but for the specified ModFiles , which is a list of module or file names. The file
extension .erl may be omitted.
The Emakefile (if it exists) in the current directory is searched for compiler options for each module. If a given module does not
exist in Emakefile or if Emakefile does not exist, the module is still compiled.
EMAKEFILE
make:all/0,1 and make:files/1,2 looks in the current working directory for a file named Emakefile . If it exists, Emakefile should contain
elements like this:
Modules.
{Modules,Options}.
Modules is an atom or a list of atoms. It can be
* a module name, e.g. file1
* a module name in another directory, e.g. ../foo/file3
* a set of modules specified with a wildcards, e.g. 'file*'
* a wildcard indicating all modules in current directory, i.e. '*'
* a list of any of the above, e.g. ['file*','../foo/file3','File4']
Options is a list of compiler options.
Emakefile is read from top to bottom. If a module matches more than one entry, the first match is valid. For example, the following Emake-
file means that file1 shall be compiled with the options [debug_info,{i,"../foo"}] , while all other files in the current directory shall
be compiled with only the debug_info flag.
{'file1',[debug_info,{i,"../foo"}]}.
{'*',[debug_info]}.
Ericsson AB tools 2.6.6.3 make(3erl)