10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i need help on shell scripting.
Main intention of the script is
step 1: ssh to remote server
Step 2: cd /tmp in remote server
Step 3: in tmp i want to grep only files and directories which are in GB sizes
All the servers list file is - tmpsrv.txt
vi tmpsrv.txt
... (17 Replies)
Discussion started by: kumar85shiv
17 Replies
2. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
3. AIX
This is AIX box and I am not able to create or delete file in /tmp though space is there
root@ttcols01/ #touch /tmp/test_file
touch: 0652-046 Cannot create /tmp/test_file.
root@ttcols01/ #mkdir /tmp/test_dir
mkdir: 0653-358 Cannot create /tmp/test_dir.
/tmp/test_dir: Invalid file system... (9 Replies)
Discussion started by: solaris_1977
9 Replies
4. Shell Programming and Scripting
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies
5. Shell Programming and Scripting
Hello,
I just saw that on my vps (centOS) my oscommerce with a seo script
has created millions of tmp files inside the /html/cache/ directory.
I would need to remove all those files (millions), I tried via shell but the vps
loads goes to very high and it hangs, is there some way to do a... (7 Replies)
Discussion started by: andymc1
7 Replies
6. Shell Programming and Scripting
Hi All ,
I want to delete files from /tmp directory created by "xxxx" id.
because i got the list says more than 60 thousand files were created by "xxxx" id since 2002.
The /tmp directory has lot of files created by different user ids like root,system etc..
But, i need a script to... (2 Replies)
Discussion started by: vparunkumar
2 Replies
7. Linux
Hi All,
Can I delete the above file? It's big, about 1G. It's on a redhat ent 4 with ldap on it.
Is that safe to delete? It wasn't been used for already a month and it's in the backup storage.
Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies
8. Shell Programming and Scripting
Hi,
In a directory, say
~/dir
is a lot of files and subdirectories. Some of the files are named
res1.om
res2.om
...
res65.om
The amount of files varies. I need a .csh script that deletes all res*.om files except the one with the highest number.
Any suggestions?
Thanks in... (6 Replies)
Discussion started by: pederlol
6 Replies
9. Solaris
I have a Solris 9 box my problem is when I restart my box all my files and dirs in /tmp dir will be deleted exept 2 directories I found them since installation phase !!!!
How to keep my files at that dir " /tmp " even after restarting ??? (1 Reply)
Discussion started by: DarkSoul
1 Replies
10. UNIX for Dummies Questions & Answers
Hello,
does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present?
Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies