There is absolutely no reason for this command to hang.
The cause would be a bug in your script or an issue with your environment.
It would help if you post your whole script content.
well, here is the entire script as it's a test of the command functionality:
Each of the commented lines is a different method I have tried, including recommendations from here. With each try, I can run the command from the command line with no issue.
But when I put it into the script and run it, I get a "#" prompt and have to type "exit"
Once I do, there is the expected delay for vmstat to do it's thing and I get the correct data. As you can see, I even tried piping it to a file to process in later commands.
---------- Post updated at 07:59 ---------- Previous update was at 07:55 ----------
Beware that this is the Solaris forum while your vmstat output is from Linux or similar. They are slightly different.
Also, you probably mean tail -1, not tail -2.[/QUOTE]
as for linux, here is a uname output of the environment:
Hi All,
I want to check memory details and other hardware details of my SCO machine. can someone please share the command to do that?
Thanks,
Am (2 Replies)
Hi All,
URGENT - Please help me form a scipt for this:
I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server)
I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine.
for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Hi All..
Am new to Unix!!
Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).
And also i have to transfer the input file from the local directory to Unix machine (Server)
Any help from you... (1 Reply)
Hi,
I want to print machine details in windows.
In UNIX it is easily available by the command
uname -X
Is there any command like this in windows to get those details..
can anybody help me on this..
Thanks in advance.
~arup (1 Reply)
I have scheduled couple of shell scripts to run using 'at' command.
The o/p of at -l is:
$ at -l
1320904800.a Thu Nov 10 01:00:00 2011
1320894000.a Wed Nov 9 22:00:00 2011
1320876000.a Wed Nov 9 17:00:00 2011
$ uname -a
SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Hi,
Could you please help me with the below issue..
I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1).
I'm trying to connect to server from the client machine using ftp service.
I have installed vsftpd daemon on both the machines.
I'm getting... (4 Replies)
I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99
Source Destination was UP, with IP 192.168.1.15.
This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)