- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ksh 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
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
07-17-2001 10:03 PM
07-17-2001 10:03 PM
ksh problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 10:57 PM
07-17-2001 10:57 PM
Re: ksh problem
"ksh -n script" does a syntax check of your script without executing it; not perfect, but something to begin with ;)
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 12:02 AM
07-18-2001 12:02 AM
Re: ksh problem
#!/usr/bin/ksh
set -x
A="Hello World!"
echo $A
The output when executing the script is:
+ A=Hello World!
+ echo Hello World!
Hello World!
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 12:41 AM
07-18-2001 12:41 AM
Re: ksh problem
The point is I do not want to
execute the script, just parsing it. Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 01:23 AM
07-18-2001 01:23 AM
Re: ksh problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 01:40 AM
07-18-2001 01:40 AM
Re: ksh problem
What I want is something
like a debugger which can
show me the actual command
after filename and variable
expansions; but without
actually executing the
command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 02:10 AM
07-18-2001 02:10 AM
Re: ksh problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 02:32 AM
07-18-2001 02:32 AM
Re: ksh problem
What you could do is create a temp dir with appropiate file in it and point your script at this area, this of course depends upon your script.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 09:25 AM
07-18-2001 09:25 AM
Re: ksh problem
At the head of the script, define the path to the data files:
datapth=/db/test
#datapth=/db/real
The path to the "live" data is commented-out.
All references in the script use the variable to point to the data.
So, while you write and debug your script you are using test data.
Then, to put the script into production, swap the comment tothe other path setting.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 02:53 PM
07-18-2001 02:53 PM
Re: ksh problem
echodo ( echo "$*" }
You can assign a variable x = "echodo" and prefix every command with the $x variable. To turn it off just set x="" (null) and commands will run.