8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am new to shell programming. I just wanted to know if I set a variable to readonly. How do I revert it back to normal.
name="some_name"
readonly name
Now I want to make name variable back to it normal, on which I can perform write operation too.
Thanks (3 Replies)
Discussion started by: dearvivekkumar
3 Replies
2. Linux
I see this when tried to create a dir using root
fstab entries are pretty normal
tried to remount with rw but it is still the same
block device /dev/sda2 is write-protected
---------- Post updated at 04:57 PM ---------- Previous update was at 03:51 PM ----------
fstab entry ... (4 Replies)
Discussion started by: robo
4 Replies
3. AIX
LOGNAME variable is set as READONLY in .profile.
I want to make it WRITEABLE so that I can modify the LOGNAME values programatically/throush shell programs.
Thanks,
Guru (1 Reply)
Discussion started by: gurubbc
1 Replies
4. Debian
I would want one of my partition to be mounted read only always... How to do that ?
1. /etc/fstab
I know that, in options we can give ro -- so when the machine boots up or 'mount -a' it will be mounted read only. But i dont want that to be mounted when machine boots up.
We will mount that... (3 Replies)
Discussion started by: thegeek
3 Replies
5. Shell Programming and Scripting
After I issused $readonly THIN. How to change back the varaibale from read only to writeable? (1 Reply)
Discussion started by: Paris Heng
1 Replies
6. UNIX for Advanced & Expert Users
Hi All,
May be this is a very simple question...
$ b=8
$ readonly b
$ echo $b
8
$ b=90
-bash: b: readonly variable
$ unset b
-bash: unset: b: cannot unset: readonly variable
I m not able to change the readonly mode of variable b
Please help me out..
Thanks
Nidhi (2 Replies)
Discussion started by: Nidhi2177
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have create a user using the following command
useradd -d /home/rozan -s /bin/bash -c "Rozan ahmed" -g dba rozan
I would like to give her only the read only access to
$BDUMP_HOME/alert.log file
The owner of the file is oracle:oinstall
Regards
Faruque (13 Replies)
Discussion started by: faruque.ahmed
13 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I'm new at this whole Unix thing, but definately learning (lots of fun)...
and I was wondering - how do you make a file read-only with vi? I don't mean how do you load up vi in read-only mode, but how do you save a file (or flag a file, or whatever) in vi to read-only? How do you make it... (2 Replies)
Discussion started by: Flyguy
2 Replies
ExtUtils::Command(3pm) Perl Programmers Reference Guide ExtUtils::Command(3pm)
NAME
ExtUtils::Command - utilities to replace common UNIX commands in Makefiles etc.
SYNOPSIS
perl -MExtUtils::Command -e cat files... > destination
perl -MExtUtils::Command -e mv source... destination
perl -MExtUtils::Command -e cp source... destination
perl -MExtUtils::Command -e touch files...
perl -MExtUtils::Command -e rm_f file...
perl -MExtUtils::Command -e rm_rf directories...
perl -MExtUtils::Command -e mkpath directories...
perl -MExtUtils::Command -e eqtime source destination
perl -MExtUtils::Command -e chmod mode files...
perl -MExtUtils::Command -e test_f file
DESCRIPTION
The module is used to replace common UNIX commands. In all cases the functions work from @ARGV rather than taking arguments. This makes
them easier to deal with in Makefiles.
perl -MExtUtils::Command -e some_command some files to work on
NOT
perl -MExtUtils::Command -e 'some_command qw(some files to work on)'
Filenames with * and ? will be glob expanded.
cat Concatenates all files mentioned on command line to STDOUT.
eqtime src dst
Sets modified time of dst to that of src
rm_rf files....
Removes directories - recursively (even if readonly)
rm_f files....
Removes files (even if readonly)
touch files ...
Makes files exist, with current timestamp
mv source... destination
Moves source to destination. Multiple sources are allowed if destination is an existing directory.
cp source... destination
Copies source to destination. Multiple sources are allowed if destination is an existing directory.
chmod mode files...
Sets UNIX like permissions 'mode' on all the files.
mkpath directory...
Creates directory, including any parent directories.
test_f file
Tests if a file exists
BUGS
Should probably be Auto/Self loaded.
SEE ALSO
ExtUtils::MakeMaker, ExtUtils::MM_Unix, ExtUtils::MM_Win32
AUTHOR
Nick Ing-Simmons <nick@ni-s.u-net.com>.
perl v5.8.0 2002-06-01 ExtUtils::Command(3pm)