Hello All,
I am a newbie in Shell script programming, and maybe you can help me with my query.
I need to write a shell script (mntServer.ksh) that will start a background process and also to be able to run another script.
The mntServer.ksh script contains:
#!/bin/ksh... (1 Reply)
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Hi Everyone,
# cat a.txt
a;b;c;64O
a;b;c;d;ee;f
# cat a.pl
#!/usr/bin/perl
use strict;
use warnings;
my $tmp3 = ",,a,,b,,c,,d,,e,,f,,";
open(my $FA, "a.txt") or die "$!";
while(<$FA>) {
chomp;
my @tmp=split(/\;/, $_);
if ( ($tmp =~ m/^(64O)/i) || ($tmp... (3 Replies)
Hi everyone,
I`ll try to be most clear I can explaining my help request.
I have 2 folders
Folder A-->This folder receives files through FTP constantly
Folder B-->The files from Folder A are unzipped and then processed in Folder B
Sometimes Folder A doesn`t contain all... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi, how can I get the mv command to include files beginning with . (such as .htaccess)?
Right now when I mv a directory the .htaccess file is missing and I need to do this on a lot of directories, so there's a lot of wordpress permalinks that don't work anymore because the .htaccess file wasn't... (5 Replies)
please help!!!!!!
I have a file .txt that has only one column like that:
34.1
35.5
35.6
45.6
...
Now, i want to add a column in the left in which the values of this column increase by 0.4 , for example:
0.0 34.1
0.4 35.5
0.8 35.6
1.2 45.6
How can i do with awk instructions??? ... (2 Replies)
Hi.
I've had a little mishap.
To cut a long story short, I've accidentally recursively ran chown on a directory (actually a bunch of 'em). Not a problem in itself, but I had a slight error in the code I used to get the list of directories and ended up with a comment in the file ownership.
... (15 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT DEBIAN
install-xpi
INSTALL-XPI(1) mozilla-devscripts suite INSTALL-XPI(1)NAME
install-xpi - installs a xpi file into a Debian package
SYNOPSIS
install-xpi [options] xpi-file
DESCRIPTION
install-xpi is a helper tool for packaging XUL extensions. It installs the given xpi file into the correct directory and creates the
required links based on the data in the install.rdf file. It corrects the file permissions unless --preserve-permissions is specified.
install-xpi will create a configuration file in /etc if the XUL extension provides one or more preferences files in defaults/preferences.
The configuration file contains only a description where to find the overridable preferences. debian/package.js is used as configuration
file instead if it exists. The placeholder @INSTALLDIR@ is replaces by the actual installation directory. You can disable the creation of a
system configuration file with --disable-system-prefs.
OPTIONS --disable-system-prefs
Do not create a system preference file in /etc.
-x file, --exclude=file
The specified file from the xpi file will not be installed. You can use this parameter several times.
-h, --help
Display a brief help message.
-i directory, --install-dir=directory
The xpi file will be installed in the specified directory. directory must be an absolute path. Use this parameter with care.
-l directory, --link=directory
An additional link from the directory to the installation directory of the extension will be created. You can use this parameter
several times.
-p package, --package=package
The xpi file will be installed in the specified binary package. If this parameter is not provided, the first binary package listed
in debian/control will be used.
--preserve-permissions
The permissions of the files in the xpi file will not be modified. If this parameter is not provided, install-xpi will try to cor-
rect the permissions of the files to 644 (files that starts with a shebang will be corrected to 755).
-r, --remove-license-files
Files with names like copying, licence, or license will not be installed.
-v, --verbose
Print more information.
AUTHOR
Benjamin Drung <bdrung@debian.org>
install-xpi January 2010 INSTALL-XPI(1)