10 More Discussions You Might Find Interesting
1. Linux
A quick howto on how to set nautilus as your default filemanager.
Add this line to the file below. This is for user settings
inode/directory=nautilus.desktop
vi ~/.local/share/applications/mimeapps.list
This is for global settings.
ls /usr/share/applications | grep nautilus
Check... (1 Reply)
Discussion started by: cokedude
1 Replies
2. Shell Programming and Scripting
Can some one please help me with the syntax in shell script for the below :
if $var1 exists in ('val1','val2','val3')
I want to execute a set of commands if the value of var1 variable matches any one of the given string values. Please let me know if there are any other option to go by.
... (10 Replies)
Discussion started by: Pandee
10 Replies
3. Shell Programming and Scripting
Apologies for the utter triviality of this question, but we all have to start somewhere! I've also tried searching but this question is pretty vague so I didn't (a) really know what to search for or (b) get many relevant hits to what I did search for.
Anyway, I'm in the process of self-teaching... (1 Reply)
Discussion started by: u5j84
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
i really new in linux and just heard about shell scripting couple days ago..
i did exercises on linux in online tutorial but as a beginner, i'm facing problems in developing the script as there are errors that sometimes i dun have any idea on how to solve it.What i'm doing now is not... (3 Replies)
Discussion started by: tedy2808
3 Replies
5. Shell Programming and Scripting
Hi,
I have a scenario in which I have to substitute the variable to call the procedure "login" in Tcl.
for {set i 1} {$i<=2} {incr i} {
login "$spawn_id$i"
}
I have the variables $spawn_id1 and $spawn_id2 in the beginning of the script which I'm trying to pass to the procedure "login". So... (2 Replies)
Discussion started by: arun_maffy
2 Replies
6. Shell Programming and Scripting
Hi
I have e.g. VAR1=january and I need to change it into VAR1=January.
How to change value of VAR1 variable to always set first character uppercase and other lowercase ?
thx for help. (9 Replies)
Discussion started by: presul
9 Replies
7. Emergency UNIX and Linux Support
Hi All,
Can anyone please help me with the regular expression/code snippet to search for an IP address in a string with Tcl scripting.
Example string
"OSPF_NBRUP OSPF neighbor 16.138.181.15 (realm ospf-v2 e1-0/0/0:37.0 area 0.0.0.0) state changed from Full to Down due to KillNbr"
In the... (6 Replies)
Discussion started by: Mr. Zer0
6 Replies
8. Shell Programming and Scripting
Hi all,
I want to monitoring my interface every 6 hours where i want to run snoop command to capture all packet through the interface, so i want running snoop then snoop will run for 5 minutes after that snoop stop then will start again after 6 hours than run for 5 minutes again.
thereis any... (9 Replies)
Discussion started by: tindasz
9 Replies
9. UNIX for Dummies Questions & Answers
I have a comma delimited text file and need to appened ",000000" to the end of every line. For example:
Before:
"D700000","2006" ,"5000","Open Year" ,"Conversion" ,"Wk64","Productive Payroll $" ,1103.45
After:
"D700000","2006" ,"5000","Open Year" ,"Conversion" ,"Wk64","Productive Payroll... (3 Replies)
Discussion started by: bggibson
3 Replies
10. Shell Programming and Scripting
Suppose pwd=/home/user/work/wip1
How to output the "pwd string" into 5 chunks?
/home/user/work/wip1
/home/user/work
/home/user
/home
/
:confused: (1 Reply)
Discussion started by: jehrome_rando
1 Replies
GUPNP_SERVICE_PROXY_ACTION_SET(3) 1 GUPNP_SERVICE_PROXY_ACTION_SET(3)
gupnp_service_proxy_action_set - Send action to the service and set value
SYNOPSIS
bool gupnp_service_proxy_action_set (resource $proxy, string $action, string $name, mixed $value, int $type)
DESCRIPTION
Send action with parameters to the service exposed by proxy synchronously and set value.
PARAMETERS
o $proxy
- A service proxy identifier.
o $action
- An action.
o $name
- The action name.
o $value
- The action value.
o $type
- The type of the action. Type can be one of the following values:
o GUPNP_TYPE_BOOLEAN - Type of the variable is boolean.
o GUPNP_TYPE_INT - Type of the variable is integer.
o GUPNP_TYPE_LONG - Type of the variable is long.
o GUPNP_TYPE_DOUBLE - Type of the variable is double.
o GUPNP_TYPE_FLOAT - Type of the variable is float.
o GUPNP_TYPE_STRING - Type of the variable is string.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS
Issues E_WARNING with either not correctly defined type of the action or unable to send action.
SEE ALSO
gupnp_service_proxy_action_get(3), gupnp_service_proxy_send_action(3).
PHP Documentation Group GUPNP_SERVICE_PROXY_ACTION_SET(3)