Showing results 1 to 40 of 339
Search took 0.03 seconds; generated 1 minute(s) ago.
Posts Made By: chris5126
Forum: Shell Scripting 11 Days Ago
Replies: 9
Views: 291
Posted By chris5126
Re: copying multiple files with user input

ok but this definatly needs to be changed:

#! /bin/bash

As it sets the file descriptor of the file and if you keep the space it wont reconsie it as a bash file!
Forum: Shell Scripting 11 Days Ago
Replies: 9
Views: 291
Posted By chris5126
Forum: Shell Scripting 12 Days Ago
Replies: 9
Views: 291
Posted By chris5126
Re: copying multiple files with user input

Also instead of this:
while read inputline
do
copydate="$inputline"
echo "you entered $copydate";

Why dont you just use

while read coypdate
do
Forum: Shell Scripting 12 Days Ago
Replies: 9
Views: 291
Posted By chris5126
Re: copying multiple files with user input

Hi,

You have some spaces which may be causing you some problems. One here:

#! /bin/bash
should be

#!/bin/bash

and also
Forum: Shell Scripting 12 Days Ago
Replies: 4
Views: 182
Posted By chris5126
Re: executing a script remotely

Are you sure that it isnt working it will run the script but pull any output back to the server you are working on. Put a large sleep in the script then log on to the server that your running the...
Forum: Shell Scripting 19 Days Ago
Replies: 4
Views: 286
Posted By chris5126
Re: newbie question - sorting a vertical list into a csv format

lol sorry just have seen very similar if not exactly the same problem before!! Look through this forum and you should find the answer somewhere.
Forum: Shell Scripting 19 Days Ago
Replies: 4
Views: 286
Posted By chris5126
Re: newbie question - sorting a vertical list into a csv format

sounds like homework to me!! You had a go at it at all. You should try man sed.
Forum: Shell Scripting 19 Days Ago
Replies: 1
Views: 236
Posted By chris5126
Re: Need help in shell scripting

I would look at awk and grep and wc.

Awk will print out columns of a file so try.

cat filename | awk '{print $1}'
You can change $1 to any number to print out the different columns.

You can use...
Forum: IT Professionals' Lounge 23 Days Ago
Replies: 0
Views: 200
Posted By chris5126
solaris virtual machine map a drive

Hi guys,

I have vm ware running a solaris 10 machine the host is a vista machine. I have a shared drive on the vista machine and would like to try and mount it in the solaris virtual machine. I have...
Forum: Shell Scripting 26 Days Ago
Replies: 3
Views: 271
Posted By chris5126
Re: How to generate a temp file until finish selected then replace to another file.

Ot create a file and pipe something into it whatever you like you can use the redirect to a file


echo "hello" > /tmp/temp.txt

This will open a new file or overwrite an existing file in the same...
Forum: Shell Scripting 27 Days Ago
Replies: 3
Views: 361
Posted By chris5126
Re: sed question

Hi John,

What do you mean your question doesnt make much sense!
Forum: Shell Scripting 27 Days Ago
Replies: 1
Views: 236
Posted By chris5126
adding up some values

Hi guys,

i have a ksh script that gets some info on processes and puts it into a temp file:


/usr/ucb/ps -auxxx|awk '{print $3," "$4," "$2," "$1," "$11}'|grep -v 0.0|sed 1d > $TMP


It gets the...
Forum: Shell Scripting 33 Days Ago
Replies: 2
Views: 385
Posted By chris5126
Re: show process currently using cpu

got it!

/usr/ucb/ps -aux | awk '{print $3,$2,$1,$11}' | grep -v 0.0 | sed 1d

This shows a list of the processes taking up cpu time in the format %cpu PID user command if anyone is interested!!
Forum: Shell Scripting 33 Days Ago
Replies: 2
Views: 385
Posted By chris5126
Re: show process currently using cpu

please note i cant use top or prstat i need something i can use within a shell script!
Forum: Shell Scripting 33 Days Ago
Replies: 2
Views: 385
Posted By chris5126
show process currently using cpu

Hi guys,

I need a command on solaris 10 to show how much cpu is bein used in % terms but more specific than sar i need it down to 0.0% if that makes sense.

Basically im tryin to find out how much...
Forum: Shell Scripting 33 Days Ago
Replies: 1
Views: 189
Posted By chris5126
Forum: Shell Scripting 34 Days Ago
Replies: 10
Views: 803
Posted By chris5126
Re: To force a script to wait for another.

To do it using PID which will just make your life more complicated!!!
In the first script (the important one/the one the others need to wait for) put the following code at the...
Forum: Shell Scripting 34 Days Ago
Replies: 10
Views: 803
Posted By chris5126
Re: To force a script to wait for another.

ok a very simple way to do it would be at the start of the important script that the others have to wait for add the following line.

touch /tmp/wait

then at the end of the script do the...
Forum: Shell Scripting Oct 28th, 2008
Replies: 1
Views: 306
Posted By chris5126
Re: why doesnt this work ksh script on solaris 10

solved! maybe if i put the debug line after the command which fills the variable it wld work!!
Forum: Shell Scripting Oct 27th, 2008
Replies: 3
Views: 503
Posted By chris5126
Re: How to check my conditions....!!!

a simple if statment will work

this isnt the syntax but just a clue!

if data > one && data < two
then
do something
else
do something else
fi
Forum: Shell Scripting Oct 27th, 2008
Replies: 10
Views: 803
Posted By chris5126
Re: To force a script to wait for another.

you could put a flag in a file in /tmp that the script could check for to make sure the last script completed before starting the next one!
Forum: Shell Scripting Oct 27th, 2008
Replies: 4
Views: 403
Posted By chris5126
Re: How to read the following command line values for a in my shell script?

you could use $1 $2 $3 etc so

test.sh -a file1 file2 -c file3 file4

$1=-a
$2=file1
$3=-c
etc etc each argument would go into the next $(number) but you would have to have some pretty complex...
Forum: Shell Scripting Oct 27th, 2008
Replies: 1
Views: 306
Posted By chris5126
why doesnt this work ksh script on solaris 10

Can someone tell me why this routine doesnt print out read/write statistics for the first device but does for the other two. I cant seem to work it out. Oh its a ksh script runnin on a solaris 10...
Forum: C# Oct 15th, 2008
Replies: 5
Views: 433
Posted By chris5126
Re: ping program c#

Thought that would be my response socket programming here i come!! thanks for all your help liz your a god send!!
Forum: C# Oct 13th, 2008
Replies: 5
Views: 433
Posted By chris5126
Re: ping program c#

Hi liz,

Thank you and i have found a few c# ping programs that do this but I was hoping to use the internal windows ping program is this possible?
Forum: C# Oct 13th, 2008
Replies: 5
Views: 433
Posted By chris5126
ping program c#

Hi guys,

I am creating a monitoring program. I need to create a windows service to send a ping request to a list of servers from a sqp server database then store the results back into a sql server...
Forum: C# Oct 7th, 2008
Replies: 5
Views: 659
Posted By chris5126
Re: windows service with threads

spot on thanks very much.

Do you have any helpful hints for the code or places I could start looking.
Forum: C# Oct 6th, 2008
Replies: 5
Views: 659
Posted By chris5126
Re: windows service with threads

hi,

basically i am getting unix servers to write to a shared drive, this needs to be read in by a windows service and added to a sql server database. This i think shld be done by a windows service...
Forum: C# Oct 6th, 2008
Replies: 5
Views: 659
Posted By chris5126
windows service with threads

HI guys,

I need to create a windows service that runs a constant ping request to a list of servers and puts the data back into a text file for each server. It will read in from a text file with ip...
Forum: Windows Vista Oct 1st, 2008
Replies: 3
Views: 242
Posted By chris5126
Re: Need Help with vista not sure if it is bug or malware

hi i would back up your important data then try a system restore to a time before you installed the update to itunes though im pretty sure it has nothing to do with it. Also check windows has the...
Forum: Windows Vista Sep 23rd, 2008
Replies: 1
Views: 177
Posted By chris5126
Re: group policies

solved guys so no worries
Forum: Windows Vista Sep 23rd, 2008
Replies: 1
Views: 177
Posted By chris5126
group policies

Hi guys,

Setting up a computer for people i work with and wish to tie down the standard user accounts but seem to be having problems. Set up is as follows:

vista business 3 users

Jeff...
Forum: Shell Scripting May 13th, 2008
Replies: 3
Views: 820
Posted By chris5126
Re: shell script beautifier

hello anyone had any more sugestions??
Forum: Windows Vista May 10th, 2008
Replies: 2
Views: 2,169
Posted By chris5126
nfs mount

HI guys,

I have a linux debian machine and windows vista machine. Now the debian machine is called chris-pc and vista is called chris-laptop. I have shared a drive on chris-pc using nfs and the...
Forum: Shell Scripting May 2nd, 2008
Replies: 3
Views: 1,311
Posted By chris5126
Forum: Shell Scripting Apr 29th, 2008
Replies: 3
Views: 820
Posted By chris5126
Re: shell script beautifier

hmm wld prefer not to use emacs! anyone know of any scripts or other programs that do it?
Forum: Shell Scripting Apr 29th, 2008
Replies: 3
Views: 820
Posted By chris5126
shell script beautifier

Anyone know of a good shell script beautifier that works in either unix or windows or a way of properly indenting/tidying up code???
Forum: IT Professionals' Lounge Mar 17th, 2008
Replies: 4
Views: 966
Posted By chris5126
Re: azureus

cool i will have a look into it later but i do like the look of azureus so if anyone know of the latest release as a .deb or package i will be very grateful for a link.
Forum: IT Professionals' Lounge Mar 17th, 2008
Replies: 4
Views: 966
Posted By chris5126
azureus

hi guys,

another quick one am using debian (lenny) and it comes with version 3.0.3 of azureus however this doesnt work correctly, however if i download the latest versio 3.0.5 from the web it works...
Forum: IT Professionals' Lounge Mar 17th, 2008
Replies: 6
Views: 1,867
Posted By chris5126
where is my gui network manager

Hi guys,

Im running debian (lenny) and have just installed my wireless network card and want to configure it using the lovely gui network manager in gnome but it seems to have disapeared from my...
Showing results 1 to 40 of 339

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:31 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC