This should do what you want, but will need to be restarted manually after every reboot:
This was written using ksh as an example, but will work with any shell following basic Bourne shell syntax. (It will not work with csh and similar shells.)
I would like to have a script that would change my current working directory. However, any time I execute a 'cd' command in a script, it holds only for the life of that script -- the working directory on exit is the same as when the script was initiated. Is it possible to have the script return... (3 Replies)
:confused:
Hi All,
This script is not working. I want to change the directory as per users selection in current shell. Looks like it is spawning sub-shell internally.
I have used
. changedir.sh
source changedir.sh
./changedire.sh
But did not work. Currently shell directory remain the... (4 Replies)
I am using oracle 9i with sun solaris 8 on Sun E 250 server.earlier we are taking backup of oracle archive files on /orabackup directory.in which archive file are stored with ...arc.Z extension. now we have changed the archive backup directory.now when we are trying to delete earlier directory... (3 Replies)
Hi,
I am trying to change the directory in my script, & want to check if the directory is present or not .
Ex:
cd /home/xyz/temp/logs
if the logs directory is not present i want to show the error in script instead of shell script error.
Can anybody please help me on the same
Thx in... (2 Replies)
HI,
I need to change the working directory by using the shell script
/Export/home/user_name
I have to go one step back like
/Export/home
Please help on this.:confused: (3 Replies)
unable to chnage the ownership as group does not exist
ls -ltr
drwxr-xr-x 2 1520291 remote 1024 Sep 25 2014 img
root@servername#chown content:remote img
chown: img: Not owner (1 Reply)
Hello,
I am looking for a UNIX shell script which can help me for access restriction.
1) /home/ram, there are number file with .txt extension, which should be only owned "ram" user.
like as below
ls -lrt *.txt
-rwx------ 1 ram dba 11 Jan 4 2015 PASS1.txt
-rwx------ 1 ram dba 10 Jan 4... (8 Replies)
Discussion started by: mr.trilok
8 Replies
LEARN ABOUT DEBIAN
saytime
SAYTIME(1) General Commands Manual SAYTIME(1)NAME
saytime - audio time check
SYNOPSIS
saytime [ -ch ] [ -d dir ] [ -f fmt ] [ -o dev ] [ -t output-type ]
DESCRIPTION
saytime speaks the current time through the computer's sound device.
OPTIONS -v factor
Increase volume level by factor. Directly passed on to sox.
-r sec Repeat at the specified interval in background mode.
-c Output to stdout.
-d dir Use sounds from alternate directory (default /usr/share/saytime).
-f fmt Specify format of time message. (see FORMAT STRING below).
-h Display simple help.
-o dev Output to alternate file. If -t is not specified with -o, -t defaults to ossdsp.
-t output-type
Specify the output type (oss, alsa, etc.); this is passed directly to sox. If neither -t nor -o is specified, saytime will pick a
default destination via sox -d.
FORMAT STRING
A format string can be specified to control the time message. Valid format characters are:
%k hour, 24-hour clock (00..23)
%l hour, 12-hour clock (01..12)
%M minutes
%P Introductory phrase ('The time is')
%S seconds
The default format string is %P%l%M%S.
BUGS
Likely a few. It doesn't handle errors gracefully.
CONTRIBUTORS
Jef Poskanzer (original author),
Patrick J. Edwards <pje120@mail.usask.ca>
Charles Briscoe-Smith <cpbs@debian.org>
David C Dawson <beagle7@pacificcoast.net> (the -v and -r options)
14 Sep 2004 SAYTIME(1)