Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sourabhjha

    eval() function problems.

    Thanks a lot. That solved my problem.
  2. sourabhjha

    eval() function problems.

    Hi, I want to check whether the checkboxes in my JSP are checked or not.The checkboxes are generated dynamically and their names are: bean0.check,bean1.check,etc. when I use 'eval' to access these checkboxes, it gives error on page, stating object expected. the structure of checkbox: <input...
  3. sourabhjha

    &lt;bean:write&gt; formatkey attribute

    Hi, Any idea how to solve this? I am using <bean:write> within logic iterate to display a particular attribute of a bean. I want that instead of displaying attribute name, it should display a diferent namespecified in properties file. How is that possible? Structure of my code: <logic:iterate...
  4. sourabhjha

    trim a string in shell script

    Gigured it out. spaceusage=`df -k|grep $filesystem|awk ' { print $5 } '|tr -d "%"` -Sourabh
  5. sourabhjha

    trim a string in shell script

    Hi, Need some help reg shell script. I have a shell script which gets the filesystem space usage percentage and displays it. Here is the piece of script which does that. filesystem=${arr[$i]} spaceusage=`df -k|grep $filesystem|awk ' { print $5 } '` echo ${arr[$i]}"="$spaceusage don't bother...
  6. sourabhjha

    how to find if file has been modified

    yes i cud work out with find mtime option and the diff commands. Thanks.
  7. sourabhjha

    how to find if file has been modified

    Hi, I have a requirement where i need find out if any of the files in a given folder has been modified(modification in the file content).I plan to set this script in my crontab and run it once daily.Thus i can know if any of the files in the given folder were modified during the day.How shall...
  8. sourabhjha

    problem usign rsh from runtime.exec

    problem resolved.some syntax issue on unix.the sequemce of parameters for rsh was not correct. Thanks for you time. -sourabh
  9. sourabhjha

    problem usign rsh from runtime.exec

    Still the problem. Here is the piece of code where i form the strings String remoteCommandStringnew= "rsh gpseai02.corporate.ge.com -l jhaso" +" \""+ "/export/home/jhaso/getdata.sh /eai02/e001,/dev/vx/dsk/var"+"\""; String remoteCommandString = "rsh " + hostName.trim() + " -l "+...
  10. sourabhjha

    commands to get cpu load/usage

    thanks again.That helps me a lot again.
  11. sourabhjha

    problem usign rsh from runtime.exec

    yes thats a typo.rwad "/homegetdata.sh" as "/home/getdata.sh
  12. sourabhjha

    problem usign rsh from runtime.exec

    Hi , I am having strange issue while using the rsh command to invoke remote commnad on a unix host from a java pgm. the code is simple. Runtime runtime = Runtime.getRuntime(); Process p = runtime.exec(remoteCommandString); Now here the string "remoteCommandString" is formed while reading...
  13. sourabhjha

    put comma separated string in array

    Thanks olded Will need just a further help. Here is what my script(getdata.sh) is. It take comma separated filesystem names as input parameter.It should return the same comma separated space usage(%) data for those filesystems -------start------------ #!/bin/ksh filesystems=$1 OFS=$IFS IFS=","...
  14. sourabhjha

    put comma separated string in array

    Hi, What is the function i shall use to put a command separated string into an array.My req is to put the comma separated strings into an an array and loop through them Thanks, -Sourabh
  15. sourabhjha

    commands to get cpu load/usage

    Hi Mike, Going ahead with my requiremenet i am stuck at one point. I want to extract the cpu load figure(middle one out of the three displayed) from the "uptime" command. I was using something like uptime|cut -d":" -f3,3,4 to do that. But i saw that the uptime command output differs on diff...
  16. sourabhjha

    commands to get cpu load/usage

    Thanks Mike.That helps me a lot and gives me enough inputs to go ahead with my requirement.
  17. sourabhjha

    commands to get cpu load/usage

    Thanks Mike,The commands you mentioned fits. Since i wanted the Host level information but not pgm level, i have decided to use "uptime" for getting the load "iostat" for cpu usage Can you help me out parsing the exact number out of these commands.I am not very comfortable using awk,sed.Little...
  18. sourabhjha

    commands to get cpu load/usage

    Hi, Wanted some commands for getting cpu usage and cpu load which should generally work on all unix platform(my Os is sun-solaris so it shud work on it for sure). I know commands like top,vmstat.Just not comfortable with filtering out just that number(load/average) Actually i will be firing...
  19. sourabhjha

    all text inmy browser has gone bold

    Hi, Suddenly my IE browser is showing all the pages in bold.I donot know which setting to look for.I have tried the font option in tools-options- Any help
  20. sourabhjha

    urgent...how to get locale on unix

    Thanks a lot.That was helpful

Part and Inventory Search

Back
Top