sziasztok
lenne egy olyan kérdésem, hogy van egy scriptem, ami lefut ha rootként futatom terminálból, de ha időzítve a root crontabjába teszem bele, akkor csak a cd törlésig jut el, de az írásig már nem.
ha valaki tud legyen kedves segítsen.
ez lenne a script, melyben vagy egy mentés, egy másik mentéssel való összemásolás, és egy írás.
sudo -u postgres /var/lib/postgresql/uc/save_db.sh
cp /var/lib/postgresql/uc/current.sql.gz /home/administrator1/NyilvĂĄnos/MENTES
/usr/bin/mkisofs -o /root/mentes.iso /home/administrator1/NyilvĂĄnos/MENTES
/usr/bin/cdrecord -v speed=24 dev=4,0,0 blank=fast -data -eject /root/mentes.iso #2>&1
ez le is fut, teminálból.
ha viszont a cronba(root cronjába) beírom ezt:
30 14 * * * /var/lib/porstgerql/uc/savefull1.sh
akkor elindul de csak a törlésig jut el
valaki legyen kedves ha tud segítsen, beszúron a cron logját is hátha segít de ebben azt sem tudom hol kezdődik:):
Max brk space used 0
13625 extents written (26 MB)
wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
scsidev: '4,0,0'
scsibus: 4 target: 0 lun: 0
WARNING: the deprecated pseudo SCSI syntax found as device specification.
Support for that may cease in the future versions of wodim. For now,
the device will be mapped to a block device file where possible.
Run "wodim --devices" for details.
Linux sg driver version: 3.5.27
Wodim version: 1.1.9
SCSI buffer size: 64512
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
TOC Type: 1 = CD-ROM
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identification : 'DVDRAM GH20NS15 '
Revision : 'IL00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0000 (Reserved/Unknown)
Profile: 0x0012 (DVD-RAM)
Profile: 0x0011 (DVD-R sequential recording)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0016 (DVD-R/DL layer jump recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0017 (Reserved/Unknown)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x001A (DVD+RW)
Profile: 0x001B (DVD+R)
Profile: 0x002B (DVD+R/DL)
Profile: 0x0010 (DVD-ROM)
Profile: 0x0009 (CD-R)
Profile: 0x000A (CD-RW)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1966080 = 1920 KB
Drive DMA Speed: 17435 kB/s 99x CD 12x DVD
FIFO size : 12582912 = 12288 KB
Errno: 5 (Input/output error), test unit ready scsi sendcmd: no error
CDB: 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 01 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x01 (medium not present - tray closed) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.005s timeout 40s
wodim: No disk / Wrong disk!
Track 01: data 26 MB
Total size: 30 MB (03:01.69) = 13627 sectors
Lout start: 30 MB (03:03/52) = 13627 sectors