[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

4419.0. "SKsh Problems ? Sksh Problems " by COMICS::HOGGAN (No, I am not kidding !!!) Wed Jan 09 1991 04:18

Hi,

I've been playing with the SKh shell for a week or so, getting to grips with
the differences between AmigaDos scripts and SKsh. I must say that this is a
very good shell indeed; my thanks to the author!. I do, however, have a couple
of little queies. 

	(1)  I have extreme difficulty in using the CP command - both builtin
	     and the external. For example, if I'm in the directory 'A' and 
	     wish to copy the contents to 'B' which is another directory, I 
	     can't.

		From dir 'A' :-
			cp * B
			cp * B/

		From dir 'B' :-
			cp A .
			cp A/* . 

	     These all give the error "Bad Args"

	(2)  Is there a way to run SKsh without hanging the parant process?
 	     It doesn't seem to like being 'run'. Is this a feature of the v1.7
	     release?

Dave.

T.RTitleUserPersonal
Name
DateLines
4419.1Sounds normal to meTLE::TLET8::ASHFORTHWed Jan 09 1991 08:3313
Dave-

Any program which is "run" from the CLI will maintain a "grip" on the CLI
"console" window from which it is run. That console is where output is normally
sent and input is normally gathered (i.e., it is c's stdin and stdout). That's
why "runback" was invented, and why 1.3 supports the "RUN >NIL:" format.

Both of these "detach" the program which is run from the console, and allow the
window to close. It's kind of like using the "&" in UNIX to initiate a
background process, or SPAWN/NOWAIT under VMS.

Cheers,
	Bob
4419.211SRUS::MARKWaltzing with BearsWed Jan 09 1991 14:1015
First point.

	You need to specify your target directory with a path that is visible
from where you are.  

	If A and B have the same parent, then from within A you would say
'cp * ../b'.  Note though that the wildcard expansion is done by SKsh in this
case, and if there are too many files, you'll overflow the AmigaDOS command 
line, which is limmited to 256 chars, or if you're using the internal version
of cp, then the limit is 1024 chars.

	I B is a subdirectory of A, then 'cp * b', or 'cp * b/' should both be
fine.

Mark
4419.3A question, not exactly related.DWOMV2::CAMPBELLDelaware AmiganWed Jan 09 1991 23:4017
    
    Sounds like this is a good spot for this question.
    
    What's the best way to pursue learning the U**X way of computing
    on the AMI and the VAX?  For example, if I wanted to find out
    what the 'cp' command does in SKsh, or for that matter, what SKsh
    was, how would I do that?  Is there a SKsh doc available on the net?
    
    Eunichs novice, here.
    
    Dennis
    
    P.S.
    
    I have heard of DECshell, but like most U**X things available for VMS,
    there is a royalty fee attached...'nuf said?
    
4419.4Documents? Hundreds of them! COMICS::HOGGANNo, I am not kidding !!!Thu Jan 10 1991 05:119
Dennis 

The documents are included in the SKsh archive. They include a 112 page 
reference manual, a sizeable user guide, external command guide and all the 
addendums. Come out on a LPS20 just fine :-)

I've converted the Reference guide to on-line Amiga format - 1% of a 20Mb drive!

Dave.