Hey , guys I am new to shell programing ,, so need a help from you guys ...
I have to write a shell script that accepts file name or directory name from the user if it is a directory then throw an error if it is a file then give the user two options .
1.overwrite the content
2.append the content
Here is my program ..
My problem is that I want to throw a message after the file is overwritten or appended without exiting the program
I have tried to use ctrl+c but it takes me out of the whole program .
I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Hi,
I want a command in unix shell script which will exit my whole program, not only from the function it's using. For e.g:
$1 == "m_who" && $4 == "Extrnl Vendor" {
print "You don have access"
exit (0);
}
If this error is showing on the screen, then nothing should not... (9 Replies)
H! I have written script where it need to invoke the perl script in background, then write the pid in temp file then bring back the job to foreground. whenever the Ctrl-C or Ctrl-Z is pressed in the script has to exit and prompt should be dispalyed. but this script causing exit from shell session... (2 Replies)
Hi, Im not a unix person but need to analyse some data.
This is bat data (animals) from large roosts using data loggers.
I think AWK is probably the best thing to use but dont really know so any help appreciated.
(python, grep) whichever it is, I'll have to learn it!
here is an example of... (27 Replies)
I have two shared libraries, A, B(B depents on A, both linked with -G option which means they're rtl enable), B's toc size is bigger than 64K(-bbigtoc), while A's toc size smaller than 64K.
Then I write a "Hello, world" example E, and link with A and B.
Link cmd 1:
xlC128_r -o E E.o -lA -lB... (0 Replies)
Hi,
while executing shell script, in the middle of the process, if we kill the shell script( ctrl+z or ctrl+c), script will be killed and the files which using for the script will be in the folder.
How to handle those scenarios. Is there any possibilities, if user breaks the script, I need to... (3 Replies)
Hi friends,
I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script.
#! /bin/sh
echo "select * from tab; commit;" > data.sql
I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Hi..!
I'm stuck with my automation of starting a process and keeping it running even after the current ssh session has exited..
So i'm trying to use command 'screen'. which is doing exactly what i wanted, But the problem is automation of the same.
i will have to press Ctrl+a and Ctrl+d for... (2 Replies)
Hello all..
so i have a problem i need to solve ..
#! /bin/bash
$SHELL
dtterm -title my_prog -e su -user -c 'export DISPLAY=:0.0 ; /path/to/my/prog' & 2> /dev/null
$SHELL
intr
exit
This script will work on solaris 10 system in right clikt menu - in a secure system so i need to... (0 Replies)
Running Xubuntu 16.04 with shell version "GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)," I have a working script that consistently renames a Chrome window:
#!/bin/sh
while sleep 1; do
xdotool search --name chrome 2>/dev/null | while read id; do
xdotool set_window --name... (21 Replies)
Discussion started by: jakefish
21 Replies
LEARN ABOUT DEBIAN
clmimac
clm imac(1) USER COMMANDS clm imac(1)
NAME
clm imac - Interpret Matrices (c.q. MCL iterands output by mcl) As Clusterings.
clmimac is not in actual fact a program. This manual page documents the behaviour and options of the clm program when invoked in mode imac.
The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.
SYNOPSIS
clm imac -imx <fname> [options]
clm imac -imx fname (input file) [-o fname (name/stem for output)] [-dag fname (output DAG)] [-overlap str (overlap mode)] [-sort str
(size|revsize|lex|none)] [-strict num (in 0..1)] [-h (print synopsis, exit)] [--apropos (print synopsis, exit)] [--version (print version,
exit)]
DESCRIPTION
Use clm imac to interpret matrices (as clusterings) output by mcl using mcl's -dump ite option.
Use clm imac only if you have a special reason; the normal usage of mcl is to do multiple runs for varying -I parameters and use the clus-
terings output by mcl itself. One reason is if you are interested in clusterings with overlap; early MCL iterands generally induce cluster-
ings possessing overlap. Another reason is to investigate how the cluster structure associated with the MCL process evolves over time.
OPTIONS
-imx fname (input file)
The input file is presumably an MCL iterand resulting from the mcl option -dump ite.
-strict num (in 0..1)
Higher values (up until 1) will thin out the DAG constructed by clm imac. The default value is 0.00001, yielding the full DAG.
-o fname (file name/stem)
Write to file named fname.
-dag fname (output DAG)
Write the DAG (directed acyclic graph) constructed from the input to file. This DAG is constructed according to the structure associated
with diagonally positive semi-definite matrices as described in the PhD thesis Graph clustering by flow simulation. Consult mclfamily(7)
for references.
-sort str (size|revsize|lex|none)
Sort the clusters either by increasing size, decreasing size, lexicographically by the indices they contain, or use the clustering exactly
as obtained from the interpretation routine.
-overlap mode (overlap mode)
With mode set to cut, remove any overlap by allocating the nodes in overlap to the first cluster in which they were found. Mode keep
leaves overlap unchanged, and mode split results in overlapping parts excised and introduced as clusters in their own right.
AUTHOR
Stijn van Dongen.
SEE ALSO
mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.
clm imac 12-068 8 Mar 2012 clm imac(1)