Search Results

Search: Posts Made By: aric87
2,504
Posted By aric87
ok.. now this message isn't cropping anymore.....
ok.. now this message isn't cropping anymore.. but something weird..
again, when i use it alone, the number of processes shows as 53..
but when I put it along with this..

if [ $(ps -u $(id -u) |...
2,417
Posted By aric87
Linux scripting problem using ps command
when I try to apply this principle to my script, is not working, it tells me something like 'command not found'

what i wrote is this..

if [$(ps -u $(id -u) | wc -l) -lt 5];
then echo...
2,504
Posted By aric87
hmm thats alright i tried now with this and is...
hmm thats alright i tried now with this and is not making any more problems, thxs a million!

---------- Post updated at 11:11 AM ---------- Previous update was at 11:00 AM ----------

hmm one...
2,504
Posted By aric87
ps problem..
How can i correct this problem? when i want to use

ps -u | wc -l

this message crops up
Warning: bad ps syntax, perhaps a bogus '-'?

How can I correct this? i must count number of...
8,612
Posted By aric87
Create a directory using current date
Hi, I have a question, is there any way I can, when i create a directory, put the current date on it so that the directory name will be "name-current date"? just curious
14,724
Posted By aric87
Problems with "if" and "wc"
Hello, I'm pretty new to this shell scripting, and I need some help, I must make a script, where I'm supposed to count all the running processes of the user,
what I've done so far, is, ps -u | wc -l...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy