Search Results

Search: Posts Made By: frappa
1,718
Posted By frappa
Hi, please check that the cat command is inside...
Hi,
please check that the cat command is inside backticks (the last one seems a single quote instead).

Moreover, the -c switch of tar command results in the re-creation of the .tar archive at...
881
Posted By frappa
egrep "^Hello" A.txt > B.txt
egrep "^Hello" A.txt > B.txt
779
Posted By frappa
cat input.txt | awk ' NR % 3 == 1 { printf $1 " "...
cat input.txt | awk ' NR % 3 == 1 { printf $1 " " }; NR % 3 == 2 { printf $0 } ; NR % 3 == 0 { print $1 , $3 } '

look for 'modulo' operator on awk manual.
see ya
fra
1,667
Posted By frappa
Hi, not very clear what are you really...
Hi,

not very clear what are you really looking for, but maybe this can help:
If you're trying to look for what network services the server is acting as a client (that is, applications running on...
35,358
Posted By frappa
Hi you may install the rpm package via rpm...
Hi you may install the rpm package via rpm without using yum, once you have downloaded the package.

yum error message seems originated by invalid base url for repository base.

Have a look at...
20,626
Posted By frappa
hi, there are many similar posts here, i.e....
hi,
there are many similar posts here, i.e. have a look at:
https://www.unix.com/unix-dummies-questions-answers/111858-argument-list-too-long-ssh.html

see ya
fra
1,268
Posted By frappa
hi curtis, there are many past threads on...
hi curtis,

there are many past threads on unix.com regarding a nedd similar to yours;
you may have a look at the following past threads for the structure of some expect script that may be useful...
4,366
Posted By frappa
hi, try: find /path/to/dir -type f...
hi,

try:

find /path/to/dir -type f -empty -mmin -60 -print >> /path/to/list.txt
1,773
Posted By frappa
while read line do num=`echo ${line} | awk...
while read line
do
num=`echo ${line} | awk -F "." ' { print $1 } '`
egrep "^${num} " file2 | cut -d" " -f2 >> output
done < file1
9,121
Posted By frappa
Hi, sometimes aliases are defined in...
Hi,
sometimes aliases are defined in ~/.bash_aliases or ~/.bash_login

Anyway you may set an alias by command line with:

alias <alias>='<command>'

but it's valid only in the current...
4,005
Posted By frappa
Hi, Last question: you may start with...
Hi,

Last question:
you may start with 'Linux Hands on Guide', you can find it on tldp.org; it's not specifically about shell scripting, but has useful exercises at the end of each chapter that...
1,052
Posted By frappa
some source of info comparing the products may be...
some source of info comparing the products may be found googling for:
splunk syslog-ng comparison
Forum: Tips and Tutorials 01-13-2012
2,485
Posted By frappa
watch ls -l
watch ls -l
17,722
Posted By frappa
Hi, in order to intercept errors during the...
Hi,

in order to intercept errors during the connection stage in expect, I generally use a "default" behaviour that makes expect to exit with a custom error code, like in the code fragment shown...
1,308
Posted By frappa
hi, have a look at man diff, diff may help to...
hi,
have a look at man diff, diff may help to check for differences in files, line by line.

On the other hand, if you post a couple of example output files from the above checks and the desired...
17,722
Posted By frappa
Hi, have you tried your script by calling it...
Hi,

have you tried your script by calling it manually and performing a simple command instead of password change? i.e. you can try to simply ls the content of the home directory just to see in the...
20,818
Posted By frappa
hi, 1. look for advanced bash scripting...
hi,

1. look for advanced bash scripting guide and other more basic resources on tldp.org, i also suggest you the linux hands on guide from tldp.org
2. if you have even a windows machine you can...
2,397
Posted By frappa
hi, have a look at man usermod, the section...
hi,
have a look at man usermod, the section OPTIONS, option -p.

perform tests on a test account

see ya
fra
14,411
Posted By frappa
Hi, first thing that comes to mind is to use...
Hi,

first thing that comes to mind is to use a simple configuration file that contains the name of all the servers to be pinged, one per line.

Then you could write a script that reads each line...
1,987
Posted By frappa
Hi Zbay, the program source code...
Hi Zbay,

the program source code documentation should point you out to know where the top directory on filesystem for XCrySDen is installed by default (provided that you didn't specified an...
1,987
Posted By frappa
Hi, check for file .bash_profile or .bashrc...
Hi,

check for file .bash_profile or .bashrc in your user home directory: the variable should be set there.

in order to list them use:
ls -al

see ya
fra
5,779
Posted By frappa
Sorry pal, it's weird that it suddenly...
Sorry pal,

it's weird that it suddenly stopped working.

Last shot in the dark could be generating another keypair (using solaris ssh implementation of ssh-keygen, not an openssh one), deliver...
Forum: HP-UX 12-15-2011
2,123
Posted By frappa
Hi, begin looking in /var/log/cron tell...
Hi,

begin looking in /var/log/cron

tell us what you find there

see ya
fra
2,678
Posted By frappa
Hi austing5, maybe visualizing the structure...
Hi austing5,

maybe visualizing the structure of the directories may clarify the concept:


/ <-- this is the 'root' directory of linux/unix filesystem
|
+-- home ...
1,141
Posted By frappa
Hi, quick & dirty solution: for...
Hi,

quick & dirty solution:

for currline in `cat input.txt`
do
ref=`echo ${currline} | cut -d, -f1`
string_from_ref=`grep ${ref} ref.txt | cut -d, -f2`
echo...
Showing results 1 to 25 of 35

 

Featured Tech Videos

All times are GMT -4. The time now is 02:16 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy