Google application engine: new files that are created when executing shell commands (Jenkins) are not implemented

I am running some shell commands in Jenkins that will create new files and I want to include those files in the project, as they are necessary to run the application after deployment. I created those new files in the project directory. These files are not present once the application starts running, the files are some properties files and I put some records in the code where I would get values ​​from those files and it is showing that there is no such file.

The commands I used to create files in particular directories are the mkdir and touch commands:

mkdir rootProject / destinationFolder / newlyCreatedFile.properties

tap rootProject / destinationFolder / newlyCreatedFile.properties

I hope to implement a verse to attach with the newly created files after Gradle has created the project and implemented it in appengine

kubuntu – Shell still fails again and again

The Plasma 5 shell in Kubuntu, or "plasmashell", crashes repeatedly. I have a piece of information from the KDE fault driver that could help solve this problem.

Plasma – The KDE accident controller
Sorry, Plasma closed unexpectedly.

You can help us improve the KDE software if you report this error.
Get more information about error reporting.

Details:
Executable: plasmashell PID: 20139 Signal: Segmentation failure (11) Time: 7/9/19 11:55:03

That is the message shown by the lock controller in the general tab. Developer Information Tab:

Plasma The KDE accident controller
The debugger has closed unexpectedly.
The crash information could not be generated.

Buttons: Reload, Clipboard, Download
You can try to regenerate the reverse trace by clicking on Recharge button.
Buttons: Report error, restart application, close

If any other information could be added to the publication, I will add it.
Thank you!

root access: need help with "adb shell pm grant Package android.permission.superuser"

I am trying to update my APN configuration using:

adb shell "su -c 'content update --uri content://telephony/carriers --bind name:s:""SDR"" --bind apn:s:"SDR-internet"'"

The first time I run this command I receive a superuser request from the package: com.android.shell. I can grant this manually, but I hope to automate the process for practice and knowledge.

I tried using the following to list all permissions, but I can't find the superuser:

adb shell pm dump package com.android.shell 

I tried the following:

adb shell pm grant com.android.shell android.permission.SUPERUSER
adb shell pm grant com.android.shell android.permission.REQUEST_SUPERUSER
adb shell pm grant com.android.shell android.permission.ACCESS_SUPERUSER

But you receive an error:

    Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown permission: android.permission.REQUEST_SUPERUSER
    at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1398)
    at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:89)
    at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2093)
    at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5411)
    at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1730)
    at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:217)
    at android.os.ShellCommand.exec(ShellCommand.java:103)
    at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21330)
    at android.os.Binder.shellCommand(Binder.java:634)
    at android.os.Binder.onTransact(Binder.java:532)
    at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2821)
    at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3856)
    at android.os.Binder.execTransact(Binder.java:731)

bash: the file is not accessible from the script, but it works fine with the shell command

I am executing a command in my shell. It works well in the shell. I mean only the terminal. But I need it to run from a script file. When I run it from a script, the file specified in a command option is not accessible. It gives the same error as if the path to the file were incorrect. The path to the file in command and in script is absolute. I also tried different variations of the path: in the root folder, with ~ in front, different absolute paths.

I created a script file, starting with #! / Bin / bash and then the command on the next line. I tried to run it like this:

sudo sh script.sh
sudo bash script.sh
sudo dash script.sh
. ./script.sh

I also tried to change the first line to

#!/bin/bash
#!/bin/sh
#!/bin/dash
#!/bin/env sh
#!/bin/env bash
#!/bin/env dash

I tried to combine ALL combinations of header line and execution command. All with the same results.

When running from a script file, the file passed in an option is not accessible. But exactly the same command works perfectly in shell. The file is passed in the option with absolute path, for example / home / ubuntu / file

I also got this output

ubuntu@ip-XXX-XXX-XXX-XXX:~$ file -h /bin/sh
/bin/sh: symbolic link to dash

bash: Shell command to generate all the add-ons that exist in several WordPress installations

I am working on a server and I need a complete list of add-ons installed for all wp installations. I just need to know if there is a complement or not, no matter where it exists.

For example, given:

/siteA/wp-content/plugins/someplugin
/siteA/wp-content/plugins/anotherplugin

/siteB/wp-content/plugins/someplugin

I need the following result:

someplugin
anotherplugin

Here is the work command:

for i in $(find . -type d -name 'plugins' | grep 'wp-content/plugins$'); do find ${i} -maxdepth 1 -type d -exec sh -c 'for f do basename -- "$f"; done' sh {} + ; done | sort -u

Can this command be shortened?

shell: alternative to the temporary file in Bash

Some backup Blow The script on my machine copies the file names of specific directory entries into a text file.

Executing the script can gather existing names and find new ones, but then make sure that the names inserted in the backup file are sorted and unique.

local file=~/bar-entries.txt
touch "$file" "${file}_"
find ~/foo/bar -maxdepth 1 -type d ! -name bar | cat <"$file" - | sort | uniq > "${file}_"
mv "${file}_" "$file"

Can this code be optimized? As if wondering if some Blow build or an external command could allow you not to trust a temporary file and edit the file instead.

Use Automator to handle multiple file entries through the Cat shell command in OS X to merge videos

I am trying to do something similar with video files without luck. Tried:

for f in "$@"
do
    cat "$f" > ~/Desktop/Test.mov
done

When I do this, just place the last selected file in the file.

Ubuntu 18.04 Gnome Shell crashes randomly

I am running a clean install of 18.04 on a Dell Inspiration desktop with an Nvidia Quadro FX1800 graphics card. From time to time, most days, my GNOME session has just ended and disconnects me. There is no obvious pattern for this in terms of open actions or programs. The last time I was moving the mouse. The trace from syslog is long, but after looking at some of them, the following seem to be common characteristics:

Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) glamor0: GL error: GL_OUT_OF_MEMORY in glTexSubImage
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (WW) glamor: Failed to allocate 7x12 FBO due to GL_OUT_OF_MEMORY.
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (WW) glamor: Expect reduced performance.
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) Backtrace:
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x139) (0x55ef0cc59829)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 1: /lib/x86_64-linux-gnu/libpthread.so.0 (funlockfile+0x50) (0x7f86e5d158df)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 2: /usr/lib/xorg/modules/libglamoregl.so (glamor_get_pixmap_texture+0x7d) (0x7f86e27b257d)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 3: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0x78f4) (0x7f86e27c4664)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 4: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0x7caf) (0x7f86e27c4d8f)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 5: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0x8668) (0x7f86e27c58a8)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 6: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0xa26f) (0x7f86e27c909f)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 7: /usr/lib/xorg/Xorg (DamageRegionAppend+0x6c6) (0x55ef0cbdcb46)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 8: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0x1111f) (0x7f86e27d749f)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 9: /usr/lib/xorg/Xorg (AddTraps+0x423d) (0x55ef0cbd576d)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 10: /usr/lib/xorg/Xorg (SendErrorToClient+0x368) (0x55ef0cafc548)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 11: /usr/lib/xorg/Xorg (InitFonts+0x3c8) (0x55ef0cb00528)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 12: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xe7) (0x7f86e5933b97)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) 13: /usr/lib/xorg/Xorg (_start+0x2a) (0x55ef0caea18a)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) Segmentation fault at address 0x0
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): Fatal server error:
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) Caught signal 11 (Segmentation fault). Server aborting
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): Please consult the The X.Org Foundation support
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): #011 at http://wiki.x.org
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616):  for help.
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) Please also check the log file at "/home/nigel/.local/share/xorg/Xorg.0.log" for additional information.
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE)
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (II) AIGLX: Suspending AIGLX clients for VT switch
Aug 28 13:36:55 mill /usr/lib/gdm3/gdm-x-session(2616): (EE) Server terminated with error (1). Closing log file.
Aug 28 13:36:56 mill systemd(1): Starting Process error reports when automatic reporting is enabled...
Aug 28 13:37:01 mill nautilus(3334): nautilus: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Aug 28 13:37:01 mill keepassxc(8945): keepassxc: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Aug 28 13:37:01 mill org.gnome.Shell.desktop(2750): Gdk-Message: 13:37:01.648: /usr/lib/firefox/firefox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.

... a lot of other apps croaking similarly ...

Aug 28 13:37:01 mill gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.Wacom.desktop' exited with code 1
Aug 28 13:37:01 mill gnome-session(2628): gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.Wacom.desktop' exited with code 1
Aug 28 13:37:01 mill gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.Color.desktop' exited with code 1
Aug 28 13:37:01 mill gnome-session(2628): gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.Color.desktop' exited with code 1
Aug 28 13:37:01 mill gnome-session(2628): gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.MediaKeys.desktop' exited with code 1
Aug 28 13:37:01 mill gnome-session(2628): gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.Keyboard.desktop' exited with code 1
Aug 28 13:37:01 mill gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.MediaKeys.desktop' exited with code 1
Aug 28 13:37:01 mill gnome-session-binary(2628): WARNING: App 'org.gnome.SettingsDaemon.Keyboard.desktop' exited with code 1
Aug 28 13:37:01 mill rtkit-daemon(1488): Supervising 1 threads of 1 processes of 1 users.
Aug 28 13:37:01 mill rtkit-daemon(1488): Successfully made thread 10328 of process 10312 (n/a) owned by '1000' RT at priority 5.
Aug 28 13:37:01 mill rtkit-daemon(1488): Supervising 2 threads of 1 processes of 1 users.
Aug 28 13:37:01 mill rtkit-daemon(1488): Supervising 2 threads of 1 processes of 1 users.
Aug 28 13:37:01 mill rtkit-daemon(1488): Successfully made thread 10329 of process 10312 (n/a) owned by '1000' RT at priority 5.
Aug 28 13:37:01 mill rtkit-daemon(1488): Supervising 3 threads of 1 processes of 1 users.
Aug 28 13:37:01 mill dbus-daemon(971): (system) Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.138' (uid=1000 pid=10312 comm="/usr/bin/pulseaudio --start --log-target=syslog " label="unconfined")
Aug 28 13:37:01 mill at-spi-bus-launcher(2725): XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Aug 28 13:37:01 mill at-spi-bus-launcher(2725):       after 2981 requests (2981 known processed) with 0 events remaining.
Aug 28 13:37:01 mill gnome-shell(2750): gnome-shell: Fatal IO error 4 (Interrupted system call) on X server :0.
Aug 28 13:37:01 mill gsd-print-notif(2873): Source ID 2 was not found when attempting to remove it
Aug 28 13:37:01 mill kernel: (22074.902509) rfkill: input handler enabled
Aug 28 13:37:01 mill systemd(2596): Stopping D-Bus User Message Bus...
Aug 28 13:37:01 mill gvfsd(2757): A connection to the bus can't be made
Aug 28 13:37:01 mill systemd(2596): xdg-permission-store.service: Main process exited, code=exited, status=1/FAILURE
Aug 28 13:37:01 mill systemd(2596): xdg-permission-store.service: Failed with result 'exit-code'.
Aug 28 13:37:01 mill deja-dup-monito(3966): Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Aug 28 13:37:01 mill deja-dup-monito(3966): Owner of volume monitor org.gtk.vfs.MTPVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Aug 28 13:37:01 mill deja-dup-monito(3966): Owner of volume monitor org.gtk.vfs.GPhoto2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Aug 28 13:37:01 mill deja-dup-monito(3966): Owner of volume monitor org.gtk.vfs.GoaVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Aug 28 13:37:01 mill deja-dup-monito(3966): Owner of volume monitor org.gtk.vfs.AfcVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Aug 28 13:37:01 mill systemd(2596): Stopped D-Bus User Message Bus.
Aug 28 13:37:01 mill systemd(2596): Started D-Bus User Message Bus.
Aug 28 13:37:01 mill dbus-daemon(10362): (session uid=1000 pid=10362) AppArmor D-Bus mediation is enabled
Aug 28 13:37:03 mill systemd(1): Started Session c5 of user gdm.

There are no obvious customizations to look at and the system memory is fine. Where to start with a solution?

configuration: enable OTG with a shell command

I am running Android Pie on a rooted OnePlus 6, and I wanted to know how I can enable OTG with a shell command. I need this to automate some tasks.

There is a configuration that can alternate OTG, which is in settings > system > OTG storage, so I thought something like this would work:

settings put global otg_enabled 1

However, I am not sure what the OTG configuration is actually called; I tried many possibilities, but none seemed to work. I also tried to search on Google, but I didn't find anything.

Can anyone help me here?

SharePoint Power Shell copies a certain version of a document from one library to another

I have a library of source documents, with different versions for each document. Let's say there is a document in the library that has versions 6.0, 5.0, 4.0. The current version of this document is 6.0.

I want to copy version 4.0 of the document to another destination document library using a Sharepoint Powerpoint script