In one of my programs another process is called using the system command e.g.
lv_error = system("myproc");
where lv_error is declared as an int.
myproc would be returning 0 for success and 1 for failure. e.g.
if (success)
{
return(0);
}else{
return(1);
}
When the return code... (3 Replies)
Hi I am having the script which contains more functions. I want to exit the function if any failure. I tried with exit - the session itself is getting logged out. How can i fix this issue? (11 Replies)
I have had a look around and can not find the answer, I dont think im searching for the right phrase.
I have written a script to control common functions on my server, however when exiting the script the terminal starts directly below the script that was running... how can i clear this so it... (2 Replies)
Hi,
I need to do a test Telnet in KSH and if the connection is good then disconnect the telnet session with out logging in and without exiting the shell script.
Example output of a good connection:
$telnet xxx.xx.xx.xxx xxxx
Trying xxx.xx.xx.xxx...
Connected to xxx.xx.xx.xxx.
Escape... (1 Reply)
Hi Everyone,
I am confused on why the below snippet of code is not working as I intend it to do. I have googled and confirmed that "exit" is supposed to abort the execution of the script regardless if the exit was called from inside a function, or the main body of the script.
log_and_die() {
... (3 Replies)
Hello,
I want to create application which launches some terminal, then some command is executed on that terminal and then prevent terminal from closing.
I started to do on gnome-terminal because the Gnome is the most widely used desktop-manager in the Linux distributions.
I want to do... (3 Replies)
I have an situation that are quite strange to me. I am not able to exit the server terminal and enter back into my home computer terminal by the command exit like I used to be able to exit the server terminal with before. I end up into my root shell again without even typing the root password like... (6 Replies)
Running Xubuntu 16.04 with shell version "GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)," I have a working script that consistently renames a Chrome window:
#!/bin/sh
while sleep 1; do
xdotool search --name chrome 2>/dev/null | while read id; do
xdotool set_window --name... (21 Replies)
Hello,
I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using,
#!/bin/bash
# main backup location, trailing slash included
backup_loc="/Volumes/Archive_Volume/00_macos_backup/"
# generic backup function
function backup {... (12 Replies)
Discussion started by: LMHmedchem
12 Replies
LEARN ABOUT REDHAT
js_x
JS_X(4x)JS_X(4x)NAME
js_x - JamStudio input driver
SYNOPSIS
Section "InputDevice"
Identifier "devname"
Driver "js_x"
Option "Device" "devpath"
Option "MaxX" "int"
Option "MaxY" "int"
Option "MinX" "int"
Option "MinY" "int"
Option "PressMax" "int"
Option "PressMin" "int"
Option "PressDiv" "int"
EndSection
DESCRIPTION
js_x is an XFree86 input driver for JamStudio devices.
The js_x driver functions as a pointer input device, and may be used as the X server's core pointer.
SUPPORTED HARDWARE
This driver supports the KB-Gear JamStudio pentablet. This X-Input driver should work on any OS supporting the hiddev raw USB HID driver.
CONFIGURATION DETAILS
Please refer to XF86Config(5x) for general configuration details and for options that can be used with all input drivers. This section
only covers configuration details specific to this driver.
Option "Device" "path"
sets the path to the raw HID device to which the tablet was assigned. This option is mandatory.
Option "MinX" "int"
Option "MaxX" "int"
Option "MinY" "int"
Option "MaxY" "int"
sets the minimum and maximum values returned for the absolute X,Y axis of the pen tablet. These values default to 0-8000 for X
and 0-6000 for Y. It should generally be safe to leave these values untouched.
Option "PressMin "int"
Option "PressMax "int"
sets the minimum and maximum values returned for the pressure sensitive tip. These values default to 0-127. It should generally
be safe to leave these values untouched.
Option "PressDiv" "int"
sets the divider for the returned pressure value. This option will allow you to return a smaller set of values for the pressure
sensitive tip allowing for finer control. The returned value is computed as follows:
X / PressDiv = returned value
where X equals the value read from the tablet.
SEE ALSO XFree86(1), XF86Config(5x), xf86config(1), Xserver(1), X(7x).
AUTHORS
Brian Goines <bgoines78@comcast.net>
XFree86 Version Version 4.3.0 JS_X(4x)