Category: UNIX-Unix Beginner
how to set a path for a command?
hi,
i install java at fedora core. so to run any java applications i have to write the complety path. for example,
/usr/java/jre1.5.0_11/bin/java "javafile"
i want to write only "java" but it said "command not found".
how i fix this?
thank you very much
Read More...
Category: UNIX-Unix Beginner
ssh between two differnt versions
hi,
i am trying to ssh between two differnt versions on solaris boxes.
the src box has the ssh secure shell 3.1.0 on sparc-sun-solaris2.6 and destination has ssh version sun_ssh_1.0, protocol versions 1.5/2.0.
i am not trying for passwordless connection. i just want to get it working with a password before i proceed with passwordless.
i get the below error
warning: authentication failed.
disconnected; key exchange or algorithm negotiation failed (key exchange failed.).
can anyone suggest what needs to be done to get this working
Read More...
Category: UNIX-Unix Beginner
determining type of file
hello,
i'm attempting to modify a script so it can be executed via a batch scheduler. part of the script calls a program called direct (which i believe may have something to do with connect direct). i have tried cat and vi on the file; cat returns absolute gibberish, vi states the file is executable.
i need to know the purpose of the program (it's inputs/outputs) and any parameters it requires. short of running it (it's on a live server) is there a way of finding out what type of program it is so i can view the code?
any help would be appreciated!
Read More...
Category: UNIX-Unix Beginner
timeperiod_name workhours in nagios
hi all,
any of you explain in brief on "timeperiod_name workhours" in nagios
for example: define timeperiod{
timeperiod_name workhours
alias "normal" working hours
monday 08:00-18:00
tuesday 08:00-18:00 ....
this means, is it check the respective service at 08:00 & 18:00 or it will checks every hr/sec ... please clarify
thanks in advance for your valuable feedback
regards,
Read More...
Category: UNIX-Unix Beginner
help needed in basic unix
hi friends,
how to obtain list of groups we r a member of and redirect it to a file.
how to append the details of current os to a file.
how to append the estimated file space to a file.
how to append the details of users loged on along wth their current activity into a file.
thank you...i'm alien to unix os.
Read More...
Category: UNIX-Unix Beginner
question about grep
i have 2 files, in one file is a list of hex numbers, the other is what i need matched. is it possible for me to specify to grep the list and have it go through the second file for each item in the list in the first file to match the lines? so this is like a cross-refference.
Read More...
Category: UNIX-Unix Beginner
ftp help
does anyone know why i can't transfer a directory containing files from a remote directory to a local directory using psftp. if i take the file out of the directory but put it in the same place as where the directory was then i can get that file using psftp's get file command. does not work for the directory (holding folder) though. could it have something to do with permissions?
Read More...
Category: UNIX-Unix Beginner
how to compare the difference between a file and a folder??
hi,
i have a .txt file which has to be compared with a folder and print the difference to some other .txt file.
i did try with the diff command..i mean
diff /tmp/aaa/bbb.txt /space/aaa/bbb/
/***bbb.txt contains all the files names which may or may not exist in the folder bbb..so i need to capture the files that does not in the folder***/
it gives me an error mesg saying..
diff : /space/aaa/bbb/ /bbb.txt : no such file or directory.
can you help me out with some other command?
thanks,
Read More...