10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i am new to shell scripts
i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies
2. UNIX for Dummies Questions & Answers
Selected directories on our system generate alerts when they exceed 60% of the disk space so I have used gzip to make the files smaller on one of the directories in question (AdminServer logs). I want to move these to another directory what is the best way to make this happen?
Thanks.. (4 Replies)
Discussion started by: nosuchluck
4 Replies
3. Shell Programming and Scripting
This is a mysql night mare that I cant seem to wrap my head around. Any shell based answers is appreciated as I dont know Perl and all I would do would be blindly copy & paste !
FILE CONTENTS -
1389685 INSERT INTO Opera_ShirtCatlog(col1,col2) VALUES (1,'TEST1'),(2,'TEST2');
1389675 INSERT... (10 Replies)
Discussion started by: ManoharMa
10 Replies
4. Red Hat
Hi All,
I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
5. Solaris
Hi All,
How to restrict the NIS users not to change their passwords in for NIS users??
and my NIS user is unable to login to at client location what could be the problem for this ?
Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies
6. Shell Programming and Scripting
Hi I have written the following piece of code to move all files with name *.sh to *.bak
the o/p i am getting is *.sh.bak
Pls help
cat filename | while read line
do
mv $line $line.sh
done
filename file conatins
file.sh
file1.sh
file2.sh
expected o/p is
file.bak (2 Replies)
Discussion started by: ultimatix
2 Replies
7. HP-UX
Hi,
I have searched the web and have come back with nothing that is satisfactory for what I require. SFTP is my corporations new file transfer standard. What I require is a method to lock down SFTP users to their directory (they may go to sub directories) while not restricting regular users. ... (2 Replies)
Discussion started by: Emancipator
2 Replies
8. UNIX for Advanced & Expert Users
can any one help
i have a file with this content file name hsnvalue.op
containing
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
i want to print only one value to another file final.out
:confused: (5 Replies)
Discussion started by: shafique
5 Replies
9. UNIX for Dummies Questions & Answers
I am using AIX Version 5.1
If I moved a file say using this command
but the directory rpt did not exist would this dump the file?
I went back to the directory I was moving it from and the file was gone and when I looked in the directory I moved it to of course that directory was not found.... (9 Replies)
Discussion started by: rocker40
9 Replies
10. Programming
what is the system call for moving directory?
i tried
main(int argc, char * argv){
if(link(argv, destinationDir)==-1){
perror("link failed");
//argv is the name of the directory i want to move input from command promt.
it displayed the link failed message.
thanks (1 Reply)
Discussion started by: bb00y
1 Replies