Sponsored Content
Top Forums Shell Programming and Scripting Have troubles with bash script: xubuntu systemd.link onboard Post 302992979 by Apop85 on Saturday 4th of March 2017 08:46:46 AM
Old 03-04-2017
So managed now to get it work

Code:
#!/bin/bash
#filename=testrun
script_name=$0
script_full_path=$(dirname "$0")

$script_full_path/onboard_run &
xfce4-terminal -e "sudo dpkg-reconfigure keyboard-configuration" &

while pgrep -x "xfce4-terminal" > /dev/null
do
    sleep 0.5
done

killall onboard
killall testrun
exit 0

Code:
#!/bin/bash
#filename=onboard_run
onboard
exit 0

Thx Chubler_XL for your help.

Last edited by Apop85; 03-04-2017 at 09:54 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Identifying onboard PCI device

Hi all, I have customized tool that displays PCI device information (something similar to the linux - "lspci") . Now, I need to display information only on "plug-in" cards. Are there any ways to distinguish between "on-board" PCI device and a PCI "plug-in" card. Thanks, Dhilip (2 Replies)
Discussion started by: diliphere
2 Replies

2. AIX

Onboard Sound

Is there a command to make the onboard sound beep? (0 Replies)
Discussion started by: dig1tal
0 Replies

3. Shell Programming and Scripting

[BASH] Remove Link from Filename

Hi there, I'm trying to make a script that downloads something, but then strips the URL for later processing. A user would input the following: ./text -install <link> Lets say the <link> is: Later on, the script would have to; unpack the file with the command: tar xvf... (6 Replies)
Discussion started by: Syekiya
6 Replies

4. Solaris

Ultra 10 Creator 3D: enabling onboard VGA

Hello, I have an Ultra 10 Creator 3D working fine with a Sun monitor, but I'd like to use it with a VGA flat panel (it would be great if I could use both screens simultaneously). As I've read in a previous thread (https://www.unix.com/sun-solaris/14875-creator-3d-video-adapter.html) this box... (1 Reply)
Discussion started by: ama
1 Replies

5. Shell Programming and Scripting

Troubles with shell script

Hello. I'm having trouble figuring out how to write this script. I'm supposed to have my script start up with specific arguments and if there are missing arguments or invalid arguments, return an error associated to its errorlevel number. For example, here are a few errorlevel numbers with their... (4 Replies)
Discussion started by: Simonpalmieri
4 Replies

6. Red Hat

Enter Bios and disable onboard NICS?

Hi, I have to get into BIOS and disable onbaord NICS for an IBM server, can someone please help me out. I tried hitting F1 when reboot to get into BIOS, but it seems like a setup screen and I dont see any option to disable NICS? Thanks Sam (0 Replies)
Discussion started by: sam4919
0 Replies

7. Hardware

Seeking advice on onboard graphic card

Hi all, I'm prepared building a new PC for testing ONLY. I don't game. Neither I'll do graphic editing on the new box. There are about 30 VMs installed running VirtualBox as virtualizer but not all of them running at the same time. Most VMs are servers. I do configuration on terminal with... (4 Replies)
Discussion started by: satimis
4 Replies

8. UNIX for Beginners Questions & Answers

Troubles running DB2 command in shell script via cron

Hi there, Now I'm facing error regarding running shell script via cron. The shell script which is required to get value from database. Below is the main part of shell script. #/bin/bash #connect to database(1) db2 connect to $database user xxxx using yyyy #set values from... (3 Replies)
Discussion started by: Rohan Kishibe
3 Replies

9. Shell Programming and Scripting

How to block first bash script until second bash script script launches web server/site?

I'm new to utilities like socat and netcat and I'm not clear if they will do what I need. I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes. I'm using Cygwin bash on Windows 10. My... (3 Replies)
Discussion started by: siegfried
3 Replies

10. UNIX for Advanced & Expert Users

Systemd cant start my script

Hi, systemd cant start my script, but it work, at command prompt. Code and execute at command prompt #cat collector.sh #!/bin/bash case $1 in start) /home/postgres/scripts/pgwatch2/pgwatch2.sh /home/postgres/scripts/pgwatch2/pgwatch2_UI.sh ;; ... (7 Replies)
Discussion started by: kvaikla
7 Replies
xfce4-session(1)					      General Commands Manual						  xfce4-session(1)

NAME
xfce4-session - Starts up the Xfce Desktop Environment SYNOPSIS
xfce4-session DESCRIPTION
This manual page documents briefly the xfce4-session command. The xfce4-session program starts up the Xfce Desktop Environment and is typically executed by your login manager (e.g. xdm, gdm, kdm, wdm or from your X startup scripts). It will load your last session or a default session that includes the standard Xfce programs if no saved session is available. xfce4-session is an standard X11R6 session manager that can manage any X11R6 SM compliant program, including GNOME and KDE programs. xfce4-session uses the contents of the ~/.cache/sessions/ directory for starting previously saved sessions. OPTIONS
xfce4-session takes the following command line options: --disable-tcp Disable binding to TCP ports in the ICE layer. This is not possible on every platform. If you use this option on a platform that does not support it, xfce4-session will print a warning message and ignore the setting. --help Print a help screen and exit. --version Output version information and exit. ENVIRONMENT
xfce4-session's behaviour is affected by the following environment variables. XDG_CONFIG_HOME Specifies the root for all user-specific configuration files. If this environment variable is unset, it defaults to ~/.config/ XDG_CONFIG_DIRS Set of preference ordered base directories relative to which configuration files should be searched in addition to the $XDG_CON- FIG_HOME base directory. The directories should be separated with a colon. XDG_CACHE_HOME Specifies the root for all user-specific cache data. If this environment variable is unset, it defaults to ~/.cache/ FILES
xfce4-session reads its configuration from the file $XDG_CONFIG_DIRS/xfce4-session/xfce4-session.rc. xfce4-session stores its session data into $XDG_CACHE_HOME/sessions/. AUTHOR
xfce4-session was written by Benedikt Meurer <benny@xfce.org> as part of the Xfce project. This manual page was written by Oliver M. Bolzer <oliver@debian.org> and Benedikt Meurer <benny@xfce.org>. REPORTING BUGS
Report bugs to http://bugzilla.xfce.org/. COPYRIGHT
Copyright (C) 2003-2004 Benedikt Meurer. Nov 01, 2004 xfce4-session(1)
All times are GMT -4. The time now is 02:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy