Search Results

Search: Posts Made By: Hammadi dali
7,186
Posted By Hammadi dali
you can use this package to have sendtrap in your...
you can use this package to have sendtrap in your Solaris
netsnmp - Solaris package (http://www.opencsw.org/package/netsnmp/)

Installation...
3,167
Posted By Hammadi dali
tree, ls, foreach, unix
Hi
Try a recursive combination between foreach and ls to list folders contents and count thier number:

foreach $dir in (ls -d /yourDir)
$nbr=$(ls -lt)
if ($nbr=0)
{echo the dir is empty}...
5,355
Posted By Hammadi dali
The variable $BOX is not defined, else its...
The variable $BOX is not defined, else its variable will appear in the error message!!
1,844
Posted By Hammadi dali
it is a problem of parenthesis positionning : ...
it is a problem of parenthesis positionning :
@echo off
SET /P deleteorkeep="This username %%i already exists, press d to delete the account and files, press k to delete the account but rename the...
2,794
Posted By Hammadi dali
Try to adjust access to the remaining scripts by...
Try to adjust access to the remaining scripts by keeping only execution right, or move them to directory accessible only by their owner.
Forum: Linux 09-04-2012
8,210
Posted By Hammadi dali
try rpm -qa | wc -l
try

rpm -qa | wc -l
2,547
Posted By Hammadi dali
It is a warning message defined in the ssh config...
It is a warning message defined in the ssh config of the remote server (newyork in your case).
You can avoid this message in your scp by using the -q option, but it will hide the progress copy too...
5,459
Posted By Hammadi dali
A similar problem was resolved in this topic...
A similar problem was resolved in this topic (http://h30499.www3.hp.com/t5/General/usr-lib-dld-sl-Can-t-find-path-for-shared-library-libz-sl/td-p/4341919), have a look it may help
1,963
Posted By Hammadi dali
Hi Try this cvs add <yourfilename> ...
Hi
Try this

cvs add <yourfilename>
cvs commit <yourfilename>
4,166
Posted By Hammadi dali
Hi You can use the function adduser...
Hi
You can use the function adduser (http://linux.about.com/od/commands/l/blcmdl8_adduser.htm), and define the user settings via the differents argument of the function
useradd [-c comment] [-d...
2,097
Posted By Hammadi dali
You can use CFT or Connect Express
You can use CFT or Connect Express
Forum: Programming 04-18-2012
2,845
Posted By Hammadi dali
I suggest to use threading and run each...
I suggest to use threading and run each cacluation in a separated thread
7,240
Posted By Hammadi dali
Juste remove space between the differents options...
Juste remove space between the differents options and their associated values, like this

NOTE: you can add the option -i and -o to define the input sql file and the spool file
1,462
Posted By Hammadi dali
You can reset the formula in this way :) #...
You can reset the formula in this way :)
# print out the contents of a cell
printf "At ($row, $col) the value is %s and the formula is %s\n",
$Sheet->Cells($row,$col)->{'Value'},
...
6,822
Posted By Hammadi dali
#!/bin/bash echo "Enter script name:" read...
#!/bin/bash
echo "Enter script name:"
read script
# you should be in the cur dir of the script
scp $script user@hostname:/tmp
# check the access mode to the script
ssh user@@hostname ls -ltr...
2,245
Posted By Hammadi dali
Try in this way sar -u -s $(date +%H:%M:%S...
Try in this way

sar -u -s $(date +%H:%M:%S --date=-1hour) -e $(date +%H:%M:%S)
2,913
Posted By Hammadi dali
and each time we discover the error we say "oh!...
and each time we discover the error we say "oh! I'm really an idiot!!" :)
2,913
Posted By Hammadi dali
thank you rbatte1 for the rectification, commands...
thank you rbatte1 for the rectification, commands were corrects before posting them. I don't know why I added a dot in each one !!
3,258
Posted By Hammadi dali
Try to remove one of these two filters and try...
Try to remove one of these two filters and try again
2,913
Posted By Hammadi dali
Hi You can use this grep "^....31"...
Hi
You can use this
grep "^....31" yourfilename
grep "^.....31" yourfilename
1,750
Posted By Hammadi dali
I tried in this way, and I got the expected...
I tried in this way, and I got the expected results.
It is basic but it is working :)


[user@server tempo]$ cat tot.txt
[Mar 20, 2012 2:45:18 PM]: Saved the user test1 to Planning
[Mar 20,...
3,243
Posted By Hammadi dali
an example: #!/bin/bash ...
an example:


#!/bin/bash
ServerList="server1 server2 server3"
ScriptsPath=../Scriptpath/..

for Server in $ServerList
do
{
ssh -qt username@$Server $ScriptsPath/ScriptName.sh }
done
1,598
Posted By Hammadi dali
Hi, Try to execute the command directly in...
Hi,
Try to execute the command directly in shell to ensure that nothing is missing, and the path is correct
12,984
Posted By Hammadi dali
Hi You can proceed in this way: awk -F:...
Hi
You can proceed in this way:

awk -F: '{ print "\033[1;31m:" $1 "\033[0m" }' /etc/passwd
1,885
Posted By Hammadi dali
Will be sufficent
Will be sufficent
Showing results 1 to 25 of 48

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