Well, you should have shown the entire error msg:
which indicates it's a compiler, and indeed, on my system, it's a link to gcc, the GNU C and C++ compiler.
So - be somewhat wary when selecting your script names.
How can I use the value of an argument as a filename? Example:
The argument for a process is 999. I would like the output of the process to be placed in a file called 999. I have tried using $$1, but that only assigns a unigue number.
thanks
JP (1 Reply)
Hi,
Can someone please explain to me how I can get a function to recognize a file given as an argument to a script.
Suppose the script has the argument as follows:
sh script file
and the function is as follows:
function display_file () {
cat $1
}
and it s then called
#main program... (1 Reply)
If I run the following command remotely after ssh than it works fine
su - oracle -c "/oracle/product/102/db/bin/dbshut"
But If I run the following command it doesn't work
su - oracle -c "/oracle/product/102/db/bin/lsnrctl stop"
Because I think there is a space is present between lsnrctl and... (1 Reply)
Hi,
I need to pass the argument in my shell script as db_ubackup20111015*.log
Scenario:
I have backup log file location in /home/backup directory (more than 40 days). I need to check the log file of the latest one (tail .
a. How I can retrieve the latest value other than passing... (1 Reply)
Can someone let me know how could I achieve this
In one of per script I am calling the shell script but I need to so one thing that is one shell script call I need to pass pne argument.In below code I am calling my ftp script but here I want to pass one argument so how could I do this (e.g:... (5 Replies)
i have file encrypted with openssl and i can decrypt and view its content by below code
openssl enc -d -blowfish -pass file:secret_key -in input_file
now i need to edit the input_file . i have to remove three lines from this file . how can this be done ? (3 Replies)
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like
invalid option - - should pass the argument.
and Exit from the script
https://www.unix.com/images/misc/progress.gif (1 Reply)
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like
invalid option - - should pass the argument.
and Exit from the script (8 Replies)
Hello Friends,
I need you help !
I have a scripts names runsteps.sh which contains command to run bunch of commands for each application you want to install " Oracle " Jboss" etc
echo " Which app you want to install Jboss" ? Yes or no?
read ans
depending on Yes or not it goes inside... (3 Replies)
Hi all,
$ echo $SHELL
/bin/bash
Requirement - How to pass oracle sql script as argument to unix shell script?
$ ./output.sh users.sql
Below are the shell scripts and the oracle sql file in the same folder.
Shell Script
$ cat output.sh
#!/bin/bash
.... (7 Replies)
Discussion started by: a1_win
7 Replies
LEARN ABOUT DEBIAN
extutils::f77
F77(3pm) User Contributed Perl Documentation F77(3pm)NAME
ExtUtils::F77 - Simple interface to F77 libs
DESCRIPTION
This module tries to figure out how to link C programs with Fortran subroutines on your system. Basically one must add a list of Fortran
runtime libraries. The problem is their location and name varies with each OS/compiler combination!
This module tries to implement a simple 'rule-of-thumb' database for various flavours of UNIX systems. A simple self-documenting Perl
database of knowledge/code for figuring out how to link for various combinations of OS and compiler is embedded in the modules Perl code.
Please help save the world by sending database entries for your system to karl_pgplot@mac.com
Note the default on most systems is now to search for a generic 'GNU' compiler which can be g77, gfortran or g95 and then find the
appropriate link libraries automatically. (This is the 'Generic' 'GNU' database entry in the code.)
The library list which the module returns can be explicitly overridden by setting the environment variable F77LIBS, e.g.
% setenv F77LIBS "-lfoo -lbar"
% perl Makefile.PL
...
SYNOPSIS
use ExtUtils::F77; # Automatic guess
use ExtUtils::F77 qw(sunos); # Specify system
use ExtUtils::F77 qw(linux g77); # Specify system and compiler
$fortranlibs = ExtUtils::F77->runtime;
METHODS
The following methods are provided:
o runtime
Returns a list of F77 runtime libraries.
$fortranlibs = ExtUtils::F77->runtime;
o runtimeok
Returns TRUE only if runtime libraries have been found successfully.
o trail_
Returns true if F77 names have trailing underscores.
o compiler
Returns command to execute the compiler (e.g. 'f77').
o cflags
Returns compiler flags.
o testcompiler
Test to see if compiler actually works.
More methods will probably be added in the future.
AUTHOR
Karl Glazebrook (karlglazebrook@mac.com).
perl v5.10.1 2011-01-01 F77(3pm)