10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
HI Team,
I am trying to create a shell script to generate a yesterday and today report to compare and email in daily basis. can you please help me on the same.
#!/bin/bash
#Author: *******************
#Description: This script will return the following set of system information:
... (2 Replies)
Discussion started by: Mi4304
2 Replies
2. UNIX for Beginners Questions & Answers
If run the below code today its creating all directory and getting output files,I f run same code tomorrow I am getting error.
can any one give suggestion to sortout this error.
OSError: no such file or directory : '062518'My code looks like this
import paramiko
import sys
import os ... (8 Replies)
Discussion started by: haribabu2229
8 Replies
3. Shell Programming and Scripting
Hello,
I have a file like this:
2012112920121130
12345620121130msABowwiqiq
34477420121129amABamauee
e7748420121130ehABeheheei
in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Discussion started by: Lilu_CK
3 Replies
4. Shell Programming and Scripting
what does today=${1:-${today}} mean???
I saw a script which has these two lines:
today=`date '+%y%m%d'`
today=${1:-${today}}
but both gives the same value for $today
user:/export/home/user>today=`date '+%y%m%d'`
user:/export/home/user>echo $today
120326... (2 Replies)
Discussion started by: Vidhyaprakash
2 Replies
5. Shell Programming and Scripting
I need to check for 4ht parameter values, if they are not in (17,18) in other words if they r not equal to 17 or 18 then exit.
can u help pls (4 Replies)
Discussion started by: raopatwari
4 Replies
6. Shell Programming and Scripting
Hi All,
I have this script:
#!/bin/ksh
lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}'
I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3.
Please help!
... (3 Replies)
Discussion started by: itik
3 Replies
7. UNIX for Advanced & Expert Users
Hi All,
I have this script:
#!/bin/ksh
lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}'
I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3.
Please help!
... (1 Reply)
Discussion started by: itik
1 Replies
8. Shell Programming and Scripting
Hi,
I need to script this:
lsvg -l vg10|grep -v vg10:|grep -v LV|awk '{print "chlv -u 2 ",$1}' > script_vg10.sh
So that I could just pass the parameter of the volume group.
When I did this on a script:
#!/bin/ksh
lsvg -l %1|grep -v %1:|grep -v LV|awk '{print "chlv -u 2",$1}' >... (4 Replies)
Discussion started by: itik
4 Replies
9. HP-UX
Which shows the current kernel settings accurately? kmtune or sysdef. I ask because although some params show the same setting with both, some do not.
Example
>kmtune | grep nfile
nfile 75008 - (15*NPROC+2048)
>sysdef | grep nfile
nfile 75018 ... (6 Replies)
Discussion started by: theninja
6 Replies
10. UNIX for Dummies Questions & Answers
Hello World,
When I issue the errpt command
1581762B 0826133303 T H hdisk1 DISK OPERATION ERROR
C14C511C 0826133303 T H scsi0 ADAPTER ERROR
I found these two unusual errors, wat exactly do these mean ?
Im on an aix box.
Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies
TRASH-EMPTY(1) General Commands Manual TRASH-EMPTY(1)
NAME
trash-empty - Empty for Command line trash utility.
SYNOPSIS
trash-empty [arguments]
DESCRIPTION
Remove for ever any trashed file and trashed directory. This command is a part of trash-cli package that provides a command line interface
trashcan utility compliant with the FreeDesktop.org Trash Specification. It remembers the name, original path, deletion date, and permis-
sions of each trashed file.
ARGUMENTS
To remove all trashed files, use 'emtpy-trash'.
To remove files that have been in the trash more than a given number of
days, use 'trash-empty x', 'x' representing the number of days.
EXAMPLES
$ date
Tue Feb 19 20:26:52 CET 2008
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
2008-02-10 20:11:34 /home/einar/last_week
$ trash-empty 7
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
$ trash-empty 1
$ trash-list
2008-02-19 20:11:34 /home/einar/today
$ trash-empty
$ trash-list
<none>
BUGS
Report bugs to http://code.google.com/p/trash-cli/issues
AUTHORS
Trash was written by Andrea Francia <andreafrancia@users.sourceforge.net> and Einar Orn Olason <eoo@hi.is>. This manual page was written
by Steve Stalcup <vorian@ubuntu.com>. Changes made by Massimo Cavalleri <submax@tiscalinet.it>.
SEE ALSO
trash-put(1), trash-restore(1), trash-list(1), and the FreeDesktop.org Trash Specification at http://www.ramendik.ru/docs/trashspec.html.
Both are released under the GNU General Public License, version 2 or later.
TRASH-EMPTY(1)