Computers & Internet Logo

Related Topics:

Posted on Sep 22, 2007

Lunix scripting I need to do a batch script on a lunix line by line not a graphic desk top. I need to know how: Find all the core dumps and MOVE them to the folder ALLCORES in the home folder of the root user. Create the directory if it does not exist. Make sure to ignore the core dumps in the ALLCORES directory when searching for them. How would I write this up in a batch script please can you help thanks katrena

1 Answer

Anonymous

Level 1:

An expert who has achieved level 1.

  • Contributor 1 Answer
  • Posted on Sep 22, 2007
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Joined: Sep 01, 2007
Answers
1
Questions
2
Helped
105
Points
2

Assuming you have ALLCORES directory: su - root find /tmp -type f -name core -exec mv {} ~/ALLCORES \;

  • Anonymous Sep 22, 2007

    oh by the way,

    I was testing as /tmp for the root of the filesystem to search. You can change this to whatever you like.

    / for the whole disk and everything else mounted

    /opt for things in /opt and under.

    If you want to restrict the search to the root partition
    only,


    then

    use


    find / -mount ....(etc)

×

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

Print Shop PhotoPro script problem with Vista

It has to be due to either of the three reasons:

1) The script is either not fully loaded or there is some error there.

2) You are using an AMD machine. Photo Pro had been reported to show signs of problem with the AMD line of processors.

3) Software somehow had got corrupted, if its not either of the top two uninstall it and then do a clean installation again and your problem shall be resolved.
0helpful
1answer

Script error while going to yahoo chat room

Hi,
First try to enable scripting through Internet Explorer

Go to Internet Explorer,
Click "Tools"
Click "Internet Options."
Click "Security" tab.
Click "Custom Level" button.
Scroll down to "Script ActiveX.controls marked safe for scripting"- enable
Scroll down to "Scripting - Active scripting" - enable
Scroll down to "Scripting of Java applets" - enable
Click OK
Click OK
I hope it will work.
Please let me know.
Thanks.
0helpful
1answer

How to write script in 2003 domaincontroller

lease follow steps to resolve your issue

First, open "Active Directory Users and Computers" on the domain controller

Now right click on the user you want to have the logon script and select the properties menu.
A properties dialog like the one shown below will appear. Select the ‘Profile’ Tab

Here is the confusing part. If I just put any old batch file name in the logon script field, where does windows try to find it from?
Lets find out. First, type in this field ‘logon.bat’
Click OK.
Now, we need to find the folder where the server loads logon scripts. It follows this format:
\\(SERVERNAME)\sysvol\(DOMAIN NAME)\scripts
So, if my server was named DCServer1, and my domain was intelliadmin.com, we would browse to this path:
\\DCServer1\sysvol\intelliadmin.com\scripts

Now that we know where to put it, creating the script is easy. Just open up notepad, and write your batch file. For our test batch file we will put in a line that loads our profile generator for Microsoft Outlook XP

We are done with the script, so we save the text file as:
\\DCServer1\sysvol\intelliadmin.com\scripts\logon.bat
Now, the next time this user logs in, they will load the login script.
hope it can resolved your issue
thanks
0helpful
1answer

How to write script in 2003 domaincontroller

Hi

please follow steps to resolve your issue

First, open "Active Directory Users and Computers" on the domain controller

Now right click on the user you want to have the logon script and select the properties menu.
A properties dialog like the one shown below will appear. Select the ‘Profile’ Tab

Here is the confusing part. If I just put any old batch file name in the logon script field, where does windows try to find it from?
Lets find out. First, type in this field ‘logon.bat’
Click OK.
Now, we need to find the folder where the server loads logon scripts. It follows this format:
\\(SERVERNAME)\sysvol\(DOMAIN NAME)\scripts
So, if my server was named DCServer1, and my domain was intelliadmin.com, we would browse to this path:
\\DCServer1\sysvol\intelliadmin.com\scripts

Now that we know where to put it, creating the script is easy. Just open up notepad, and write your batch file. For our test batch file we will put in a line that loads our profile generator for Microsoft Outlook XP

We are done with the script, so we save the text file as:
\\DCServer1\sysvol\intelliadmin.com\scripts\logon.bat
Now, the next time this user logs in, they will load the login script.
Check out our Windows Admin Tools
Filed Under: Windows

hope it can resolved your issue
thanks for using fixya
0helpful
2answers

Batch convert image files, that keeps a folder tree?

If your not using version 2.20 then upgrade because there is no limit according to the manufacturer.
0helpful
2answers

Flash script

You should know programming. If you know it, you could write scripts in Action Pan in Flash or other editors.
I suggest you this website:
http://www.flashkit.net/
you can find all your answers here. Enjoy it.
Good luck
1helpful
1answer

Need help batch script #!/bash/sh

google batch script programming to get tutioral and other info on batch scripting

all the batch needs to do id change its directory to the directory you want and then just use other commands to do what you want with the files
e.g

cd\
cd Documents and settings
cd user
cd temp
del *.*
0helpful
1answer

Bash scripts

bash script? or do you mean Batch Script?
Not finding what you are looking for?

115 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6692 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...