- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 2'nd question C-shell script
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
Forums
Discussions
Discussions
Discussions
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
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
08-18-2003 01:42 AM
08-18-2003 01:42 AM
yet another one:
I want to pass a variable to a program which send a command to the coressponding network element like:
%script_name -n parent_element_name -c "ZEQV:BTS=$i:GPRS=N;"
which means send to the parent network node the command (-c) in quotation marks, where $i takes values from 1 to 248. The problem is it returns me a variable syntax error because of ":" after $i. I have tried to comment it out with "\" but in this case the command sent is like:
ZEQV_BTS=1\:GPRS=N; which is incorrect, because of \ (here I put 1 instead of current $i value). Single quotation marks are also incorrect because they prevent variable substitution also - why was C-Shell invented for :-))??
Thank you,
ionu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 01:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 03:44 AM
08-18-2003 03:44 AM
Re: 2'nd question C-shell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 09:37 AM
08-18-2003 09:37 AM
Re: 2'nd question C-shell script
http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
I would also point out that csh doesn't seem to have a way
of defining subroutines or functions aside from putting them
in separate files and calling them like commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 10:13 PM
08-18-2003 10:13 PM