- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell script problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО12-20-2003 11:06 PM
тАО12-20-2003 11:06 PM
I have a little problem in my script.
I'm trying to run omnidb command with next parameters:
-filesystem serv1:/opt/alex 'serv1:/opt/alex'
for some reason, when
x="serv1:/opt/alex"
y="'serv1:/opt/alex'"
or
x="serv1:/opt/alex 'serv1:/opt/alex'"
it does not run properly.
in debug mode (sh -x), I see the command that it's tryng to run and it looks correct, even if I copy&paste it to the command line it works, but from the script itself it does not.
The proble I think is in '. But every thing I tried to do with " or sed or whatever does not fix the problem ...
any ideas?
thanx.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 02:23 AM
тАО12-21-2003 02:23 AM
Re: Shell script problem
What shell are you using?
omniback can be scripted, but lots of people think the GUI does just fine (Bill Hassell: read sysadmins don't use GUI's).
Maybe post the sh -x output?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 04:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 04:23 AM
тАО12-21-2003 04:23 AM
Re: Shell script problem
please show us the lines used in the script.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 05:29 AM
тАО12-21-2003 05:29 AM
Re: Shell script problem
I have had some problems with those ' in the label too. Here is one solution I have used:
store the label in a variable without any '
in the command line, fubstitute the label with
$(echo "'"$label"'")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 10:46 AM
тАО12-21-2003 10:46 AM
Re: Shell script problem
why do you use no quotes for the first parameter and quotes for the second one. Could you post the command, you try to run and any error messages?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 05:57 PM
тАО12-21-2003 05:57 PM
Re: Shell script problem
thanx all for your replies,
Merry Christmas or Hanukah! :)