- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with simple sh command
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-21-2002 11:12 AM
07-21-2002 11:12 AM
remsh serverX /usr/bin/grep "fbackup(" logfile
ksh: syntax error at line 1 : `(' unexpected
If I remove the (, then it works fine. If I repeat the command locally (i.e. with remsh) then it also works fine - but for some reason adding remsh causes a problem.
Any suggestions would be appreciated.
Regards
Alun
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 11:13 AM
07-21-2002 11:13 AM
Re: Problem with simple sh command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 11:49 AM
07-21-2002 11:49 AM
Re: Problem with simple sh command
try
/usr/bin/grep "fbackup\(" logfile
or
/usr/bin/grep 'fbackup(' logfile
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 01:54 PM
07-21-2002 01:54 PM
SolutionThe remsh will interprete the "-quotes by taking the string and then executes the string without the quotes.
Solution:
replace fbackup( by fbackup\(
Reason:
You loose the " by remsh and
then the shell will give you an error (not remsh):
Real cause:
The shell sees (( .. )) as arithmetic expressions and ( .. ) are used to create subshells.
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 10:21 PM
07-21-2002 10:21 PM
Re: Problem with simple sh command
without \ (back slash) sh treats ( as special character. so to avoid this u should put \ before any special characters, like ( * ? ^ etc.,
here \ is called as escape sequence
regds