Is there a way I could autodetect a drive identifier? For example, below I would like to be able to put "disk1s1" into a variable (meaning that every time that the script I am writing runs I would like to be able to figure out the disk number for my BACKUP 1 Partition). I am not an expert, sorry if this is a stupid question, any help appreciated because I am interested in getting better at this.
---------- Post updated at 08:50 AM ---------- Previous update was at 08:27 AM ----------
I used the following code to get the info I want, now I need to store that in a variable. Again, clearly I am not familiar with the convention that should be used.
---------- Post updated at 08:53 AM ---------- Previous update was at 08:50 AM ----------
Hi,
When I insert a cd to CDROM drive in SF V210 Solaris 10 it took seconds then eject it auto!
How can I solve this issue?
Thanks
Regards :) (8 Replies)
Hi
I have already gone through this topic on this forum, but still i am getting same problem.
I am using solaris 10. my login shell is /usr/bash
i have got a script as below
/home/gyan> cat 3.cm
#!/usr/bin/ksh
export PROG_NAME=rpaa001
if i run this script as below , it works fine... (3 Replies)
Hi everyone.
I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are:
1) to have the share automatically map as the P: drive to members of the employees group
2) to have the share automatically map as the t: drive to members of the tech... (0 Replies)
Hi Guys...
I am using the following codes in my script:
SID_L=`cat /var/opt/oracle/oratab|grep -v "^#"|cut -f1 -d: -s`
SID_VAR=$SID_L
for SID_RUN in $SID_VAR
do
ORACLE_HOME=`grep ^$SID_RUN /var/opt/oracle/oratab | \
awk -F: '{print $2}'` ;export ORACLE_HOME
export... (2 Replies)
Hello,
I need a simple script to Auto-detect new files and folders in the directory.
And then I need to zip the new files and bzip2 new folders and move them out of that folder where I am detecting changes to the other folder.
Remember, I need simple one. If anyone could do it fast, I may... (1 Reply)
I have a 320 GB drive which dual boots Windows and Debian:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal):... (0 Replies)
I have a Dell XPS M1330 laptop. The OS is Windows 10. I had to replace the motherboard because it was bad. After replacing the motherboard I noticed the optical (DVD/CD) drive is neither detected in BIOS and OS nor making any noise at all. Everything else seems to be working fine. The optical drive... (3 Replies)
Discussion started by: milhan
3 Replies
LEARN ABOUT DEBIAN
cdde
cdde(1)cdde(1)NAME
cdde - Compact Disc Detect & Execute
SYNOPSIS
cdde [-c filename] [-rbvVh]
DESCRIPTION
cdde is a program that detects when a cdrom drive on your system has had a disc inserted.
When it finds a disc inserted in the drive it will attempt to determine the type of the disc, and execute a specified command.
This means you can put in a dvd and your favorite dvd software will start, or put in a data cd and it will be automatically mounted for
you.
Right now cdde can detect the following types of discs:
* audio cd
* data cd
* dvd
* mixed audio/data cd
* vcd
* svcd
* blank cdr/dvdr
For now the dvd checking is just a bit of magic that checks to see if there's a "video_ts" directory on the disc. Same goes for the vcd
checking: it just looks for a "vcd" directory on the disc.
cdde reads its configuration from "~/.cdde.xml" unless otherwise specified on the command line.
OPTIONS -r, --run
Run commands on disc already in drive when is started.
-b, --batch
Batch mode: check all drives once then exit. (implies -r)
-c, --config <filename>
Use the config file <filename>. (Default is ~/.cdde.xml)
-v, --verbose
Print out lots of information.
-V, --version
Print out version information.
-h, --help
Print Display this help and exit.
FILES
~/.cdde.xml
SEE ALSO cdde.xml(5)AUTHORS
Eric Lathrop <eric@ericlathrop.com>
Stanislav Maslovski <stanislav.maslovski@gmail.com>
WEBSITE
For the latest release of cdde, see:
http://cdde.sourceforge.net/
Eric Lathrop 0.3.1 cdde(1)