Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute command from Sybase command line 1

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
Hi,

I want to execute, (example of UNIX env), a 'ls -l' command from Sybase command line, however I don't know the correct syntax. I did:

1> exec 'ls -l'
2> go
and I try with
1> exec ls -l
2> go

Both of them produce errors. Could anyone tell me what I've done wrong.
Thanks
 
If my memory serves me correctly, try using (it is either 1 or 2) exclamation points infront of your command, example:

!ls

or it maybe

!!ls

Good luck
 
Nice one, nbrk - Never knew that one - Works for most Unix commands - saves me logging out of isql.
Have a star !
((;-))) Dickie Bird
Honi soit qui mal y pense
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top