HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DP command on a script inside the cron
Operating System - HP-UX
1833873
Members
1762
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 01:30 AM
02-01-2006 01:30 AM
DP command on a script inside the cron
Hi All,
I'm trying to execute a Data Protector command inside an script, the script executed interactivly runs ok but when I execute it from the cron the result is not good at all. The command inside the script are the following:
-----------------------------------------------------
#!/sbin/sh
uma=/opt/omni/lbin/uma
wdir=/home/fgarcia/scripts/tapes/vaulting
device=/dev/rac/ESL_picker
${uma} -ioctl ${device} -barcode < ${wdir}/log/uma_X.in > ${wdir}/log/Xslots_free.log 2>&1
#${uma} -ioctl ${device} -barcode < ${statx} > ${wdir}/log/Xslots_free.log
xSlot=$(cat ${wdir}/log/Xslots_free.log|grep -c Empty)
xSlot=$(expr $xSlot - 9 )
echo 'Slot x free: ' ${xSlot} >> ${wdir}/log/action.log
-----------------------------------------------------
inside the uma_X.in there is only one instruction stat x, so the script should return inside the Xslots_free.log file the status of the removable slots of the library.
The contents of the file Xslots_free.log in a normal run is:
/dev/rac/ESL_picker> stat x
8192 X1 Full "000626L2" ""
8193 X2 Empty "" ""
8194 X3 Empty "" ""
.......
the contest of the file after a run from the cron is the following:
)0 UMA HP OpenView OmniBack II A.05.50V15 ^G^A[12:1] ^G^B[2004] ^G^E1138800661 UMA itdcmae6 ^G^A[90:13] (unnamed) (unnamed)
^D61]15 ^G^A[12:1] ^G^B[2003] ^G^E1138800661 UMA itdcmae6 ^G^A[90:28] Details unknown. (unnamed)V15 ^G^A[12:1] ^G^B[2
004] ^G^E1138800661 UMA itdcmae6 ^G^A[90:19] (unnamed) (unnamed)^F1 1
I have already try with:
- changing the shell
- include the same environment variables as root (interactive session)
- Include the 2>&1 in the entry of the cron
Any idea will be more than wellcome.
Thanks in advance,
Federico.
I'm trying to execute a Data Protector command inside an script, the script executed interactivly runs ok but when I execute it from the cron the result is not good at all. The command inside the script are the following:
-----------------------------------------------------
#!/sbin/sh
uma=/opt/omni/lbin/uma
wdir=/home/fgarcia/scripts/tapes/vaulting
device=/dev/rac/ESL_picker
${uma} -ioctl ${device} -barcode < ${wdir}/log/uma_X.in > ${wdir}/log/Xslots_free.log 2>&1
#${uma} -ioctl ${device} -barcode < ${statx} > ${wdir}/log/Xslots_free.log
xSlot=$(cat ${wdir}/log/Xslots_free.log|grep -c Empty)
xSlot=$(expr $xSlot - 9 )
echo 'Slot x free: ' ${xSlot} >> ${wdir}/log/action.log
-----------------------------------------------------
inside the uma_X.in there is only one instruction stat x, so the script should return inside the Xslots_free.log file the status of the removable slots of the library.
The contents of the file Xslots_free.log in a normal run is:
/dev/rac/ESL_picker> stat x
8192 X1 Full "000626L2" ""
8193 X2 Empty "" ""
8194 X3 Empty "" ""
.......
the contest of the file after a run from the cron is the following:
)0 UMA HP OpenView OmniBack II A.05.50V15 ^G^A[12:1] ^G^B[2004] ^G^E1138800661 UMA itdcmae6 ^G^A[90:13] (unnamed) (unnamed)
^D61]15 ^G^A[12:1] ^G^B[2003] ^G^E1138800661 UMA itdcmae6 ^G^A[90:28] Details unknown. (unnamed)V15 ^G^A[12:1] ^G^B[2
004] ^G^E1138800661 UMA itdcmae6 ^G^A[90:19] (unnamed) (unnamed)^F1 1
I have already try with:
- changing the shell
- include the same environment variables as root (interactive session)
- Include the 2>&1 in the entry of the cron
Any idea will be more than wellcome.
Thanks in advance,
Federico.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 01:34 AM
02-01-2006 01:34 AM
Re: DP command on a script inside the cron
"inside the uma_X.in there is only one instruction stat x"
Does the "stat x" command use a full path name?
Pete
Pete
Does the "stat x" command use a full path name?
Pete
Pete
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP