04-12-2011
scripts are seem like correct.
* you can try safely umount and then mount and check any errors.
* if your system use default fs structure , maybe /usr/ must be on separate mount on a device..and if you can, you can run fsck this device despite any fs errors.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Following is my shell script.
#!/bin/tcsh
view=$1
image=$2
objfld="obj-ppc-$image"
echo $view
echo $image
echo $objfld
echo "cleartool setview $view"
cleartool setview $view;
cd `cd /vob/ios/sys`;
In this "cd" is not working and not getting any error.
my shell is "tcsh"... (3 Replies)
Discussion started by: amitrajvarma
3 Replies
2. Shell Programming and Scripting
Hi,
When i run the below command i am able to get the output.
awk '/BEGIN DSSUBRECORD/{c=3;next}c-->0' abc.txt |
awk '/END DSSUBRECORD/{exit}{print}' |
awk '/Owner/{exit}{print}' |
awk '{n2=n1;n1=n;n=$0;if(NR%3==0){printf"%s,%s,%s\n",n2,n1,n}}'
Output:
Name "file_name", ... (5 Replies)
Discussion started by: onesuri
5 Replies
3. Shell Programming and Scripting
typeset -l section
section=${2:-.}
what does these 2 lines meaning? (1 Reply)
Discussion started by: venkatababu
1 Replies
4. Shell Programming and Scripting
Hello All,
I have tried many permutaion combinations in my shell script but cd command is not working in shell script.
Can any one help me out in this.
Below is my script.
############
#!/bin/sh
set -x on
BASE_DIR=/etc/init.d
export BASE_DIR
cd $BASE_DIR
#############
but its... (8 Replies)
Discussion started by: ajaincv
8 Replies
5. Shell Programming and Scripting
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies
6. Shell Programming and Scripting
Hi, the following command works in the terminal no problem.
samtools view -h rawlib.bam | perl -ne '{ @line = split( /\s+/ ); $match = 0; while( $line =~ /(\d+)M/g ) { $match = $match + $1 } if( $match >= 80 || $_ =~ /^\@/ ) { print $_ } }' | java -Xmx12G -jar... (8 Replies)
Discussion started by: jdilts
8 Replies
7. Shell Programming and Scripting
Hai ,
When i use paste command in command prompt its giving expected output but not in the script. Below is the example.
$cat file
1
2
3
$cat file1
4
5
6
$paste -d ':' file file1
1:4
2:5
3:6
but when i used the same command in script its giving the output as below :
1
2
3 (3 Replies)
Discussion started by: Subbu123
3 Replies
8. Shell Programming and Scripting
Hi,
I am a bit confused ,why would a sed command work fine outside of ksh script but not inside.
e.g
I want to replace all the characters which end with a value and have space at end of it.
so my command for it is :
sed -i "s/$SEPARATOR /$SEPARATOR/g" file_name
This is working fine in... (8 Replies)
Discussion started by: vital_parsley
8 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
10. Shell Programming and Scripting
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT DEBIAN
halevt-mount
HALEVT-MOUNT(1) General Commands Manual HALEVT-MOUNT(1)
NAME
halevt-mount/halevt-umount - Mount or umount device through HAL
SYNOPSIS
halevt-mount [options] [-w] mountpoint|device|udi
halevt-mount [options] <-c | -r> <-a | mountpoint | device | udi>
halevt-mount [options] <-l | -s>
halevt-umount [options] < -a | mountpoint | device | udi>
DESCRIPTION
halevt-mount Mount or umount device through HAL and keep a track of devices handled. When called as halevt-umount the default is to
unmount, when called as halevt-mount the default is to mount. Option -c, -l, -r, -s or -w changes the operation performed. Additional
argument is considered to be a mount point, a device or an udi when unmounting or removing.
If the commands are not called with -s after changes in the state of the devices (after mounting, unmounting, removing devices), the infor-
mation available for halevt-mount and halevt-umount may become out of sync with the state of the system.
When run as user halevt (or as root), no uid= argument is passed to HAL when mounting, otherwise this option is passed, if the filesystem
allows it.
OPTIONS
-a When listing, list all the existing devices. For the other operations, perform the operation on all the handled devices.
-c Remove the handled device.
-d device
Use device device.
-f file
Use file file to store information about the handled devices instead of the default.
-h Help message and options summary.
-i directory
Use lock file and device information file in the directory directory (if they are not already specified).
-l List handled devices. Formatted with, on each line, udi:device:mountpoint.
-p mountpoint
Use mountpoint mountpoint.
-m umask
Set mount umask to umask if run as a system user, and the filesystem supports it.
-n file
Use file file as lock file.
-o option
Add the option option to the mount call.
-r Umount.
-s Sync the information about the handled devices with the informations known by HAL.
-u udi Use udi udi.
-w Add to the handled devices.
SEE ALSO
halevt(1), gnome-mount(1), pmount(1)
VERSION
This is halevt-mount version 0.1.6.2.
AUTHOR
Main author is Patrice Dumas pertusus at free dot fr.
AVAILABILITY
The latest version of this program can be found at:
http://www.nongnu.org/halevt/
COPYRIGHT
Copyright (C) 2007-2008 Patrice Dumas <pertusus at free dot fr>,
There is NO warranty. You may redistribute this software under the terms of the GNU General Public License; either version 2 of the
License, or (at your option) any later version. For more information about these matters, see the file named COPYING.
7th Edition HALEVT-MOUNT(1)