Search Results

Search: Posts Made By: victorbrca
7,077
Posted By victorbrca
Found the issue. It was actually related to...
Found the issue. It was actually related to X-Forwarding being enabled in Putty. I'm not sure why, but disabling X-Forwarding solved it.
7,077
Posted By victorbrca
Do you mean using the "at" command? ...
Do you mean using the "at" command?

Thanks.
7,077
Posted By victorbrca
Thanks for replies everyone. As I had mentioned...
Thanks for replies everyone. As I had mentioned in my first post, the script itself is run with "nohup" and placed in the background with "&". The script starts a Java process (JBOSS) and other non...
2,018
Posted By victorbrca
This works for me: sed 's/\.cfg/\.cfg\n/g' |...
This works for me:

sed 's/\.cfg/\.cfg\n/g' | grep '.cfg' | sed 's/\(.*\)\(d:*.cfg\)/\2/'

Depending on the shell you are using you might have issues with the new line part in sed:

sed...
2,018
Posted By victorbrca
I'm sure this is not the best way... but it's a...
I'm sure this is not the best way... but it's a way...

sed 's/\.cfg/\.cfg\n/g' | grep '.cfg' | awk -F"/" '{print $3}'
2
1,987
Posted By victorbrca
One option is to use shell's filename expansion: ...
One option is to use shell's filename expansion:

file[1-4]
7,077
Posted By victorbrca
JBOSS process quits on shell exit
I decided to add this here as it's related to bash (IMHO) and not necessarily to JBOSS.

The problem started happening a few weeks ago on some of the test systems that I have. When I exit my shell...
Forum: Cybersecurity 02-01-2012
6,222
Posted By victorbrca
Help with sudoers file - AIX
Hi all,

I'm trying to setup my sudoer file at work to have the right security, but I'm not able to refine to the level I want.

Here's what I would like to have:

=> OS Users
- John (group...
4,567
Posted By victorbrca
I'm not trying to get the value of the variable,...
I'm not trying to get the value of the variable, but use the value as a variable name.

Here's the difference:

BASH
$ _var=HOME
$ echo ${_var}
HOME
$ echo ${!_var}
/home/VMendonc
KORN
$...
4,567
Posted By victorbrca
${!var} does not work in ksh
Anyone knows why the following function does not work in ksh (it does in bash)?

var() # Displays var value; case insensitive
{
_var="$1"

if [ -n "${!_var}" ] ; then
echo...
3,345
Posted By victorbrca
Logical and vs. conditional loop
Simple question. What's the difference (pros and cons) between these two:

if [ -n $_var] ; then
condition1
elif [ -z $_var ] ; then
condition2
fi[ -n $_var ] \
&& condition1 \
...
1,242
Posted By victorbrca
Understanding ${parameter}
I was reading Bash Cookbook and it had a line of command that assigned a value from var2 to var1 if var1 was empty. Someone told me I could do the same with ${parameter}.

I'm just trying to...
4,130
Posted By victorbrca
Thank you very much for the detailed information...
Thank you very much for the detailed information Chris.

May I add that I was at last year's (2008) Ontario Linux fest and watched your presentation. It was very interesting!! :)


Vic.
4,130
Posted By victorbrca
Scripts in ~/bin vs. functions in ~/.bashrc
Hi there,


Anyone knows what would be the cons and pros of adding a script in ~/bin vs. a function in ~/.bashrc?

I'm not sure how the system keeps tracks of some of the settings loaded in...
120,477
Posted By victorbrca
See if this works for you: cat test.txt |...
See if this works for you:

cat test.txt | sed 's/, /\n/g'Don't forget to add the space after the coma otherwise you will end up with spaces on the new lines.


Vic.
2,948
Posted By victorbrca
So that's the problem. I didn't know that this...
So that's the problem. I didn't know that this was the proper way of doing it.

I guess it will take a while before I can finish the script them. I gotta learn shell before I can jump into another...
2,948
Posted By victorbrca
grep a word instead of a line
Hi all,


I'm a noobie at shell scripting (and Linux) with no experience on programing.

I'm trying to create a script that will download my xml calendar from Google, process it in the [month,...
Showing results 1 to 17 of 17

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