Thank you for all the assistance! Once I added the PATH info it works great! I do have one more question now that I have gotten back to working on this. If I wanted this to put the combined sorted info into a text file, is this the correct format? I am not getting any data in the file and this is why I would like to ask.
I am trying to set up a variable based on the name of the file.
function script_name {
if
then
job_name='MONITOR'
return job_name;
elsif
then
job_name='VERSION'
return job_name
fi
}
for i in `ls *log`
do
script_name $i
done. (4 Replies)
If I declare a structure as:
typedef struct
{
int id;
void* ptr;
int size;
} kpage_t;
And then use this to do some initialization...
*((kpage_t**)page->ptr) = page;
What exactly is being done? I have some trouble with pointers here... :(
And if there's a macro... (1 Reply)
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.
How do I write the "do nothing" statement in the following example?
Example:
if (( "$x"="1" && "$y"="a" && "$z"="happy" ))
then
do nothing
else
command
command
fi... (3 Replies)
Hi All,
I am using Unix ksh script.
I need to insert values to a table using the o/p from a slelect statement.
Can anybody Help!
My script looks like tihs.
---`sqlplus -s username/password@SID << EOF
set heading off
set feedback off
set pages 0
insert into ${TB_NAME}_D... (2 Replies)
Hi, can someone please tell me what is wrong with this code? I just want it to check if the file size is greater than 2000kb.
if
Thanks!
---------- Post updated at 09:23 PM ---------- Previous update was at 09:21 PM ----------
I should probably post the full code:
#!/bin/sh... (9 Replies)
Hi all,
After so many tries and searching online for ideas, I had trouble accomplishing this. Is it possible to do something like this in KSH to run an if statement on a return code?
Unfortunately the code below fails... Would anyone know how to fix the below attempt?
if "$`{pkginfo... (3 Replies)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
hello all
im new to unix and when i use below script i get an error :
#! /bin/bash
Echo -e "enter the name of the file : \c"
read file_name
if
then
echo "$file_name found"
else
echo "$file_name not found"
fi
running the script i get below error :
$ ./hello (26 Replies)
Discussion started by: Ibrahims1
26 Replies
LEARN ABOUT DEBIAN
fvwm-config
fvwm-config(1) Fvwm Modules fvwm-config(1)NAME
fvwm-config - query an existing fvwm installation
SYNOPSIS
fvwm-config [--help] [--version] [--info] [--prefix] [--exec-prefix] [--bindir] [--datadir] [--libexecdir] [--sysconfdir] [--mandir]
[--localedir] [--fvwm-moduledir] [--fvwm-datadir] [--fvwm-perllibdir] [--default-imagepath] [--default-userdir] [--fvwm-exe] [--supports]
[--supports-<feature>] [--is-final] [--is-stable] [--release-date]
DESCRIPTION
fvwm-config is a shell script that provides an information about the fvwm version, installation directories, built-in paths and supported
features.
OPTIONS
fvwm-config prints to the standard output in all options. Both short and long GNU-like option names may be used.
-h --help -?
prints the short usage
-v --version -V
prints the version
-i --info
prints the full info page
-P --prefix
prints the installation prefix
-E --exec-prefix
prints the installation exec-prefix
-B --bindir
prints the installation bindir
-D --datadir
prints the installation datadir
-L --libexecdir
prints the installation libexecdir
-S --sysconfdir
prints the installation sysconfdir
-M --mandir
prints the installation mandir
-O --localedir
prints the installation localedir
-m --fvwm-moduledir
prints FVWM_MODULEDIR, where the modules are installed
-d --fvwm-datadir
prints FVWM_DATADIR, where the system wide configs are installed
-p --fvwm-perllibdir
prints FVWM_PERLLIBDIR, where the perl library is installed
-I --default-imagepath
prints the built-in ImagePath
-U --default-userdir
prints the default FVWM_USERDIR, note: $HOME is not expanded
-e --fvwm-exe
prints the fvwm executable name (in bindir)
-s --supports
lists all supported features, one per line
--supports-<feature>
prints nothing, returns: 0 if the <feature> is supported, 100 if not, 200 if unknown. All or supported feature names may be found
using --info or --supports respectively.
--is-final
prints "yes" for final releases and "no" for cvs snapshots
--is-stable
prints "yes" for the stable branch and "no" otherwise
--release-date
prints the release date if the release is final
USAGE
Here are some real life usages.
Checks for xft support:
if fvwm-config --supports-xft;
then echo 1; else echo 0; fi
fvwm-themes package checks for the correct fvwm version installed using:
fvwm-config --version
and tries to use the same installation directories:
fvwm-config --bindir --mandir --fvwm-datadir
A way to find the full path to the fvwm executable:
echo `fvwm-config --bindir`/`fvwm-config --fvwm-exe`
A way to start modules in perl:
use lib `fvwm-config -p | tr -d '0`;
use FVWM::Module;
For a more human readable output, try:
fvwm-config --info
COPYING
fvwm-config is a part of fvwm package and distributed by the same terms, see GNU GPL.
AUTHOR
Mikhael Goikhman <migo@homemail.com>
3rd Berkeley Distribution 09 May 2010 (2.5.30) fvwm-config(1)