You are on page 1of 1

Please check the file for any ^M characters once on the UNIX system because thes

e will have to be removed before the script can be executed.


To check for the characters do the following:
#vi perf.sh
If the file contains any ^M characters then you will see them at the end of the
lines in the script. Then do the following:
Esc -> Shift + :
This will bring you to a : (colon) prompt
:%s/^M//g
(To get ^M, hit Ctrl V then Ctrl M)
Then do
Esc --> Shift + : --> wq!
Upload perf.sh script to server.
- Create a directory named perf and move the perf.sh into that directory.
- Make sure the file has the appropriate execute permissions. and run perf.sh
as root.
- Run the script:
# ./perf.sh

You might also like