Question about Operating Systems

1 Answer

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

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer
Re: lunix scripting

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

Posted on Sep 22, 2007

Add Your Answer

0 characters

Uploading: 0%


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


3 Points

Related Questions:

4 Answers

What is scrip running

Anonymous, we'll need a whole lot more information in order to help you. "Scrip" means "money", so I'm guessing you mean "script", which is a series of commands. The script might be in your browser, in your word processor, or in some other program, or it might be directly in Windows. We can't tell from your description. What is the actual message you're seeing, and when do you see it?

Jul 03, 2014 | Microsoft Windows 7 Home Premium 64BIT...


How to Encode your VBS and JS files for secure website uploading

If you are still at Service Pack 2 then you can use Microsoft's own Script Encoder download it from HERE it's a command line version so after you have installed it you need to run the command prompt also make sure the Windows Scripting Host is started.


For both Visual Basic Scripts and JavaScript you will need to format the text in your script to look like this;


Replace your code goes here with your actual code when the encoder has been run then you will see that the <SCRIPT LANGUAGE= ********> will have changed to <SCRIPT LANGUAGE= ********.encode> and your code will be random characters.

The Syntax for the encoder from the command prompt is;


Recognized file extensions are .js and .vbs, which are changed to .jse and .vbe, respectively, after encoding, also these type of files can be decoded if you know what you are doing and therefore not totally hacker proof.

IF YOU HAVE SERVICE PACK 3 installed then this won't work at all so the best method is to use this VBS2EXE this is also a command prompt program you must make sure that the script that you want to convert is in the same root folder.


When finished there will be a new file about 10 times larger then the script with the EXE file extension if you try to edit it all the code appears random this is the best method for encoding your scripts

If you want to do it ALL online and feel secure then you can do both VBS (VIsual Basic Script) and (JS) JavaScript using this website below but it is limited to 10kb per file

If you create alot of batch files then I suggest that you also check out their BAT2EXE v1.5 this will convert CMD or BAT files into EXE files for web distribution you can also password protect and add a decompiler if required


on May 30, 2010 | Microsoft Windows XP Professional SP2

2 Answers

Can anyone explain how batch file works?

This is kind of tricky not knowing how familiar you are with the commandline, but a batch file simply contains single commands and executes them in order (usually from top to bottom). A batch file (or bash script in Linux) can be very helpful if you have to run certain commands over and over again, so you don't have to write them by hand.

An Example: You want to store your network settings in a text file.
You open the command prompt (WIN+R) and type this line:
mkdir C:\Network
Then you type this line:
ipconfig /all > C:\Network\ipconfig.txt
The first line creates a folder on your C: drive called "Network"
The second line runs the ipconfig command and saves it as a text file in that new folder.

To make a batch file, you open Notepad and insert the two lines. Then save it as "IP.bat" (make sure not to save it as "IP.bat.txt"! This is the most common mistake. If you save a file from Notepad, select "All Files" in the "Save As Type" dialog. Otherwise it will save it as a .txt file and you have to rename it later.)

Now you can double click the batch file and it runs all commands in the file.

You can also see the danger. If you run a batch file and don't know what it really does, it can destroy your whole system. So make sure you understand it and/or get it from a trustworthy source.

A nice example of how complex a batch file can be is here:

Copy the content into a text file, save it as AllHelp.bat, run it and it will create a webpage with all available DOS commands.

Hope this helps - otherwise let me know if you have specific questions.

Feb 26, 2012 | HEWLETT-PACKARD Operating Systems

2 Answers

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.

Dec 14, 2009 | Microsoft Windows XP Home Edition

1 Answer


First let me explain. Each browser handles scripts (the stuff that make up web pages and stuff) differently. You have Notify Me of Script Errors turned "ON" on your computer, so you will be notified of every error or warning - even if it works fine.

FIX: To fix this, Go to your Control Panel (START > Control Panel) and, in Classic View (you can find that on the left panel), click Internet Options. In the tabs on the top, click "Advanced", and then find the category "Browsing". CHECK "Disable Script Debugging (Internet Explorer), and "Disable Script Debugging (Other)". UNCHECK "Display a notification about every script error".

Click OK, and then messenger should work fine. If it does it again, restart your computer, then it will work fine.

Nov 26, 2008 | Microsoft Windows Vista Home Premium with...

1 Answer

Action script

Here is the simpliest of them all:

this.createTextField("myText", 1, 0, 0, 100, 25);
this.myText.text = "Hello world!";
This script writes Hello world! on the screen, and if you want to get to know ActionScript better, here is a great way to start:
Read that page, visit some of the external links you find there and later you may search Google for terms like "Action script tutorial" or "Action script examples"

Hope this helps. Ask again if you need more help.

Sep 12, 2008 | Microsoft Windows XP Professional With...

2 Answers

How can i configure the Ip address and dns in dos mode

netsh [-a AliasFile] [-c Context] [-r RemoteMachine] [Command | -f ScriptFile]

? Displays a list of commands. add Adds a configuration entry to a list of entries.

add helper Installs a helper DLL. delete Deletes a configuration entry from a list of entries.

delete helper Deletes a helper DLL. dump Displays a configuration script. exec Runs a script file. help Displays a list of commands. interface Changes to the `interface' context.

ip Changes the 'interface ip' context. ras Changes to the `ras' context.

aaaa Changes to the `ras aaaa' context. appletalk Changes to the `ras appletalk' context. ip Changes the 'ras ip' context. ipx Changes to the `ras ipx' context. netbeui Changes to the `ras netbeui' context. routing Changes to the `routing' context.

ip Change to the 'routing ip' context. ipx Changes to the `routing ipx' context. set Updates configuration settings.

machine Sets the current machine on which to operate. show Displays information.

show alias Lists all defined aliases. show helper Lists all the top-level helpers.
Available commands after you have entered the netsh command (typing netsh at the prompt and pressing enter).
.. Goes up one context level. ? Displays a list of commands. abort Discards changes made while in offline mode. add Adds a configuration entry to a list of entries. alias Adds an alias. bye Exits the program. commit Commits changes made while in offline mode. delete Deletes a configuration entry from a list of entries. dump Displays a configuration script. exec Runs a script file. exit Exits the program. help Displays a list of commands. interface Changes to the `interface' context. offline Sets the current mode to offline. online Sets the current mode to online. popd Pops a context from the stack. pushd Pushes current context on stack. quit Exits the program. ras Changes to the `ras' context. routing Changes to the `routing' context. set Updates configuration settings. show Displays information. unalias Deletes an alias. Examples
netsh Enter the netsh command. netsh dump Dump all the network information as a script to the screen. Can also be sent to a file by doing netsh dump > file.txt . This script can then be executed using the exec command. set address name="Local Area Connection" source=dhcp Set the "Local Area Connection" to DHCP. set address local static 1 Set the local address to Static. netsh interface ip show config View network ip configuration. Below is an example of what may be seen. Configuration for interface "Local Area Connection"
DHCP enabled: Yes
InterfaceMetric: 1
DNS servers configured through DHCP
WINS servers configured through DHCP

May 15, 2008 | Microsoft Windows Server Standard 2003 for...

1 Answer

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

cd Documents and settings
cd user
cd temp
del *.*

Sep 23, 2007 | Operating Systems

1 Answer

Linux scripting

Have you tried this link:

Sep 22, 2007 | Operating Systems

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

90 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts


Level 3 Expert

18258 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Martin Murray

Level 3 Expert

1614 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides