Search Results

Search: Posts Made By: Yakuzan
1,965
Posted By Yakuzan
Well the problem is, I have a script that changes...
Well the problem is, I have a script that changes the NI number of the next opened process ( I.E xclock) which another script does.

Basically:

Menu > Script 3>:
NI number to: inputNI...
1,965
Posted By Yakuzan
[BASH] Holding a variable unto other scripts.
Ex: Script 1 has pID=333. I want to take pID to Script 2 so I can retrive 333.

How can I do this?
4,190
Posted By Yakuzan
Finding the nice(ni) number with PID?
Hi, is there a command that takes the PID of a process and that only diplays it's ni number?

I`m pretty sure it would require pipes but I tried a few things that ended up miserably...

Since the...
5,766
Posted By Yakuzan
I see that progname would contain something...
I see that progname would contain something related to xclock. Does that mean I'd have to rinse-repeat for each other application I'd like to block?
5,766
Posted By Yakuzan
[BASH] xclock/xcalc/xterm...process question?
I have no idea how to do this:

Let's say the user opens an "xclock &" in one of my scripts and I don't want him to be able to re-open one with the script. How could I test that? Possibly with a...
39,028
Posted By Yakuzan
Bumping, I finished the rest of my menu. I got a...
Bumping, I finished the rest of my menu. I got a question on the xclock command:

How can I run an xclock and if a second one is run a message stating there's already one running in the in...
39,028
Posted By Yakuzan
Edited my post for CODE tag. Hopefully Il...
Edited my post for CODE tag.

Hopefully Il be able to work on my scripts today. Been doing a lot of HTML and Java hehe :o

Btw, I don't want my script to be able to delete a whole directory...
39,028
Posted By Yakuzan
Thanks for the input guys, Il be working on the...
Thanks for the input guys, Il be working on the file mover in a few days.


Btw, I have a script that deletes directories. I made it so that the user writes the folder that needs to be deleted...
39,028
Posted By Yakuzan
I'm trying to create a script that places you in...
I'm trying to create a script that places you in any directory that you input the name.(No need for the whole path)

I've finished doing it but I'm now experiencing a problem because I'm trying to...
39,028
Posted By Yakuzan
Since I'm in computer science I asked my teacher,...
Since I'm in computer science I asked my teacher, he showed me the basename method, worked like a charm.

Thanks for the
echo "${PWD##*/}"

Will try understanding what does ##*/ mean.
39,028
Posted By Yakuzan
Hey, is their a command that directly displays...
Hey, is their a command that directly displays the current directory?

I'm not talking about pwd.

I want the underlined part of let's say this pwd:

$HOME/bin/workfile1

See, I don't...
39,028
Posted By Yakuzan
I've never heard of printf, thanks a lot. Il read...
I've never heard of printf, thanks a lot. Il read the man associated with it.

Edit: I just found out that you can also write echo "Date : " $(date +%d-%m)
39,028
Posted By Yakuzan
How can I write a command right after an echo....
How can I write a command right after an echo. It`s not working:

echo "Date : " `date + %d`

Am I writing it wrong?
39,028
Posted By Yakuzan
Il use this thread to ask most of my questions...
Il use this thread to ask most of my questions since my Linux book blows. It only covers basic BASH since it's not a BASH guide.

And since my openSUSE doesn't have internet on it I'm stuck going...
39,028
Posted By Yakuzan
Pressing Enter (bash)
Hey, I'm writing this BASH script, I recently started learning BASH after I did Java and I'm pretty new to the syntax.

Anways, what I want to do is simple, I coudn't find the right information...
Showing results 1 to 15 of 15

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