精华内容
下载资源
问答
  • LibreOffice命令

    2019-09-12 21:45:08
    # libreoffice4.4 --help LibreOffice 4.4.7.2 f3153a8b245191196a4b6b9abd1d0da16eead600 Usage: soffice [options] [documents...] Options: --minimi...
    # libreoffice4.4 --help
    
    LibreOffice 4.4.7.2 f3153a8b245191196a4b6b9abd1d0da16eead600
    
    Usage: soffice [options] [documents...]
    
    
    Options:
    
    --minimized    keep startup bitmap minimized.
    
    --invisible    no startup screen, no default document and no UI.
    
    --norestore    suppress restart/restore after fatal errors.
    
    --quickstart   starts the quickstart service
    
    --nologo       don't show startup screen.
    
    --nolockcheck  don't check for remote instances using the installation
    
    --nodefault    don't start with an empty document
    
    --headless     like invisible but no userinteraction at all.
    
    --help/-h/-?   show this message and exit.
    
    --version      display the version information.
    
    --writer       create new text document.
    
    --calc         create new spreadsheet document.
    
    --draw         create new drawing.
    
    --impress      create new presentation.
    
    --base         create new database.
    
    --math         create new formula.
    
    --global       create new global document.
    
    --web          create new HTML document.
    
    -o             open documents regardless whether they are templates or not.
    
    -n             always open documents as new files (use as template).
    
    
    --display <display>
    
          Specify X-Display to use in Unix/X11 versions.
    
    -p <documents...>
    
          print the specified documents on the default printer.
    
    --pt <printer> <documents...>
    
          print the specified documents on the specified printer.
    
    --view <documents...>
    
          open the specified documents in viewer-(readonly-)mode.
    
    --show <presentation>
    
          open the specified presentation and start it immediately
    
    --accept=<accept-string>
    
          Specify an UNO connect-string to create an UNO acceptor through which
    
          other programs can connect to access the API
    
    --unaccept=<accept-string>
    
          Close an acceptor that was created with --accept=<accept-string>
    
          Use --unnaccept=all to close all open acceptors
    
    --infilter=<filter>[:filter_options]
    
          Force an input filter type if possible
    
          Eg. --infilter="Calc Office Open XML"
    
              --infilter="Text (encoded):UTF8,LF,,,"
    
    --convert-to output_file_extension[:output_filter_name[:output_filter_options]] [--outdir output_dir] files
    
          Batch convert files.
    
          If --outdir is not specified then current working dir is used as output_dir.
    
          Eg. --convert-to pdf *.doc
    
              --convert-to pdf:writer_pdf_Export --outdir /home/user *.doc
    
              --convert-to "html:XHTML Writer File:UTF8" *.doc
    
              --convert-to "txt:Text (encoded):UTF8" *.doc
    
    --print-to-file [-printer-name printer_name] [--outdir output_dir] files
    
          Batch print files to file.
    
          If --outdir is not specified then current working dir is used as output_dir.
    
          Eg. --print-to-file *.doc
    
              --print-to-file --printer-name nasty_lowres_printer --outdir /home/user *.doc
    
    --cat files
    
          Dump text content of the files to console
    
          Eg. --cat *.odt
    
    --pidfile file
    
          Store soffice.bin pid to file.
    
    -env:<VAR>[=<VALUE>]
    
          Set a bootstrap variable.
    
          Eg. -env:UserInstallation=file:///tmp/test to set a non-default user profile path.
    
    
    Remaining arguments will be treated as filenames or URLs of documents to open.
    

     

    转载于:https://my.oschina.net/leewb/blog/672649

    展开全文
  • 批量杀进程libreoffice命令

    千次阅读 2016-10-27 16:52:52
    libreoffice | awk '{print $2}' | xargs kill - 9 geeklee@geeklee - ThinkPad - E420:~$ ps - ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 08:06 ? 00:00:01 ...
    ps -ef|grep libreoffice | awk '{print $2}' | xargs kill -9
    geeklee@geeklee-ThinkPad-E420:~$ ps -ef
    UID        PID  PPID  C STIME TTY          TIME CMD
    root         1     0  0 08:06 ?        00:00:01 /sbin/init splash
    root         2     0  0 08:06 ?        00:00:00 [kthreadd]
    root         3     2  0 08:06 ?        00:00:00 [ksoftirqd/0]
    root         5     2  0 08:06 ?        00:00:00 [kworker/0:0H]
    root         7     2  0 08:06 ?        00:00:20 [rcu_sched]
    root         8     2  0 08:06 ?        00:00:00 [rcu_bh]
    root         9     2  0 08:06 ?        00:00:00 [migration/0]
    root        10     2  0 08:06 ?        00:00:00 [watchdog/0]
    root        11     2  0 08:06 ?        00:00:00 [watchdog/1]
    root        12     2  0 08:06 ?        00:00:00 [migration/1]
    root        13     2  0 08:06 ?        00:00:00 [ksoftirqd/1]
    root        15     2  0 08:06 ?        00:00:00 [kworker/1:0H]
    root        16     2  0 08:06 ?        00:00:00 [watchdog/2]
    root        17     2  0 08:06 ?        00:00:00 [migration/2]
    root        18     2  0 08:06 ?        00:00:01 [ksoftirqd/2]
    root        20     2  0 08:06 ?        00:00:00 [kworker/2:0H]
    root        21     2  0 08:06 ?        00:00:00 [watchdog/3]
    root        22     2  0 08:06 ?        00:00:00 [migration/3]
    root        23     2  0 08:06 ?        00:00:00 [ksoftirqd/3]
    root        25     2  0 08:06 ?        00:00:00 [kworker/3:0H]
    root        26     2  0 08:06 ?        00:00:00 [kdevtmpfs]
    root        27     2  0 08:06 ?        00:00:00 [netns]
    root        28     2  0 08:06 ?        00:00:00 [perf]
    root        29     2  0 08:06 ?        00:00:00 [khungtaskd]
    root        30     2  0 08:06 ?        00:00:00 [writeback]
    root        31     2  0 08:06 ?        00:00:00 [ksmd]
    root        32     2  0 08:06 ?        00:00:04 [khugepaged]
    root        33     2  0 08:06 ?        00:00:00 [crypto]
    root        34     2  0 08:06 ?        00:00:00 [kintegrityd]
    root        35     2  0 08:06 ?        00:00:00 [bioset]
    root        36     2  0 08:06 ?        00:00:00 [kblockd]
    root        37     2  0 08:06 ?        00:00:00 [ata_sff]
    root        38     2  0 08:06 ?        00:00:00 [md]
    root        39     2  0 08:06 ?        00:00:00 [devfreq_wq]
    root        43     2  0 08:06 ?        00:00:04 [kswapd0]
    root        44     2  0 08:06 ?        00:00:00 [vmstat]
    root        45     2  0 08:06 ?        00:00:00 [fsnotify_mark]
    root        46     2  0 08:06 ?        00:00:00 [ecryptfs-kthrea]
    root        62     2  0 08:06 ?        00:00:00 [kthrotld]
    root        63     2  0 08:06 ?        00:00:00 [acpi_thermal_pm]
    root        64     2  0 08:06 ?        00:00:00 [bioset]
    root        66     2  0 08:06 ?        00:00:00 [bioset]
    root        67     2  0 08:06 ?        00:00:00 [bioset]
    root        68     2  0 08:06 ?        00:00:00 [bioset]
    root        69     2  0 08:06 ?        00:00:00 [bioset]
    root        70     2  0 08:06 ?        00:00:00 [bioset]
    root        71     2  0 08:06 ?        00:00:00 [bioset]
    root        72     2  0 08:06 ?        00:00:00 [bioset]
    root        73     2  0 08:06 ?        00:00:00 [bioset]
    root        74     2  0 08:06 ?        00:00:00 [bioset]
    root        75     2  0 08:06 ?        00:00:00 [bioset]
    root        76     2  0 08:06 ?        00:00:00 [bioset]
    root        77     2  0 08:06 ?        00:00:00 [bioset]
    root        78     2  0 08:06 ?        00:00:00 [bioset]
    root        79     2  0 08:06 ?        00:00:00 [bioset]
    root        80     2  0 08:06 ?        00:00:00 [bioset]
    root        81     2  0 08:06 ?        00:00:00 [bioset]
    root        82     2  0 08:06 ?        00:00:00 [bioset]
    root        83     2  0 08:06 ?        00:00:00 [bioset]
    root        84     2  0 08:06 ?        00:00:00 [bioset]
    root        85     2  0 08:06 ?        00:00:00 [bioset]
    root        86     2  0 08:06 ?        00:00:00 [bioset]
    root        87     2  0 08:06 ?        00:00:00 [bioset]
    root        88     2  0 08:06 ?        00:00:00 [bioset]
    root        93     2  0 08:06 ?        00:00:00 [ipv6_addrconf]
    root       107     2  0 08:06 ?        00:00:00 [deferwq]
    root       108     2  0 08:06 ?        00:00:00 [charger_manager]
    root       149     2  0 08:06 ?        00:00:00 [irq/18-mmc0]
    root       150     2  0 08:06 ?        00:00:00 [kpsmoused]
    root       151     2  0 08:06 ?        00:00:00 [scsi_eh_0]
    root       152     2  0 08:06 ?        00:00:00 [scsi_tmf_0]
    root       153     2  0 08:06 ?        00:00:00 [scsi_eh_1]
    root       154     2  0 08:06 ?        00:00:00 [scsi_tmf_1]
    root       155     2  0 08:06 ?        00:00:00 [scsi_eh_2]
    root       156     2  0 08:06 ?        00:00:00 [scsi_tmf_2]
    root       157     2  0 08:06 ?        00:00:00 [scsi_eh_3]
    root       158     2  0 08:06 ?        00:00:00 [scsi_tmf_3]
    root       159     2  0 08:06 ?        00:00:00 [scsi_eh_4]
    root       160     2  0 08:06 ?        00:00:00 [scsi_tmf_4]
    root       161     2  0 08:06 ?        00:00:00 [scsi_eh_5]
    root       162     2  0 08:06 ?        00:00:00 [scsi_tmf_5]
    root       171     2  0 08:06 ?        00:00:00 [kfd_process_wq]
    root       175     2  0 08:06 ?        00:00:00 [ttm_swap]
    root       176     2  0 08:06 ?        00:00:00 [bioset]
    root       177     2  0 08:06 ?        00:00:00 [bioset]
    root       181     2  0 08:06 ?        00:00:00 [kworker/0:1H]
    root       182     2  0 08:06 ?        00:00:00 [radeon-crtc]
    root       184     2  0 08:06 ?        00:00:00 [radeon-crtc]
    root       185     2  0 08:06 ?        00:00:00 [radeon-crtc]
    root       186     2  0 08:06 ?        00:00:00 [radeon-crtc]
    root       187     2  0 08:06 ?        00:00:00 [kworker/2:1H]
    root       211     2  0 08:06 ?        00:00:01 [jbd2/sda12-8]
    root       212     2  0 08:06 ?        00:00:00 [ext4-rsv-conver]
    root       244     2  0 08:06 ?        00:00:00 [kauditd]
    root       258     1  0 08:06 ?        00:00:00 /lib/systemd/systemd-journald
    root       272     2  0 08:06 ?        00:00:00 [kworker/1:1H]
    root       284     1  0 08:06 ?        00:00:00 /lib/systemd/systemd-udevd
    root       424     2  0 08:06 ?        00:00:00 [ktpacpid]
    root       425     2  0 08:06 ?        00:00:08 [ktpacpi_nvramd]
    root       437     2  0 08:06 ?        00:00:00 [irq/29-mei_me]
    root       519     2  0 08:06 ?        00:00:00 [cfg80211]
    systemd+   532     1  0 08:06 ?        00:00:00 /lib/systemd/systemd-timesyncd
    root       764     1  0 08:07 ?        00:00:01 /usr/sbin/acpid
    avahi      768     1  0 08:07 ?        00:00:01 avahi-daemon: running [geeklee-T
    root       774     1  0 08:07 ?        00:00:00 /usr/lib/accountsservice/account
    root       783     1  0 08:07 ?        00:00:00 /lib/systemd/systemd-logind
    message+   786     1  0 08:07 ?        00:00:11 /usr/bin/dbus-daemon --system --
    avahi      798   768  0 08:07 ?        00:00:00 avahi-daemon: chroot helper
    syslog     803     1  0 08:07 ?        00:00:00 /usr/sbin/rsyslogd -n
    root       806     1  0 08:07 ?        00:00:15 /usr/sbin/NetworkManager --no-da
    root       809     1  0 08:07 ?        00:00:00 /usr/sbin/ModemManager
    whoopsie   812     1  0 08:07 ?        00:00:00 /usr/bin/whoopsie -f
    root       825     1  0 08:07 ?        00:00:00 /usr/sbin/cups-browsed
    root       828     1  0 08:07 ?        00:00:01 /usr/sbin/thermald --no-daemon -
    root       832     1  0 08:07 ?        00:00:00 /usr/sbin/cron -f
    root       870     1  0 08:07 ?        00:00:00 /usr/lib/snapd/snapd
    root       880     1  0 08:07 ?        00:00:01 /usr/sbin/irqbalance --pid=/var/
    root       889     1  0 08:07 ?        00:00:00 /usr/lib/policykit-1/polkitd --n
    root       892     2  0 08:07 ?        00:00:01 [kworker/3:1H]
    root       928     1  0 08:07 ?        00:00:00 /usr/sbin/lightdm
    dnsmasq    943     1  0 08:07 ?        00:00:05 /usr/sbin/dnsmasq -x /var/run/dn
    root      1001   928  3 08:07 tty7     00:16:14 /usr/lib/xorg/Xorg -core :0 -sea
    postgres  1051     1  0 08:07 ?        00:00:00 /usr/lib/postgresql/9.5/bin/post
    root      1058     1  0 08:07 ?        00:00:02 /sbin/wpa_supplicant -u -s -O /r
    postgres  1066  1051  0 08:07 ?        00:00:01 postgres: checkpointer process  
    postgres  1067  1051  0 08:07 ?        00:00:00 postgres: writer process   
    postgres  1068  1051  0 08:07 ?        00:00:00 postgres: wal writer process   
    postgres  1069  1051  0 08:07 ?        00:00:00 postgres: autovacuum launcher pr
    postgres  1070  1051  0 08:07 ?        00:00:00 postgres: stats collector proces
    root      1092     1  0 08:07 tty1     00:00:00 /sbin/agetty --noclear tty1 linu
    root      1178   928  0 08:07 ?        00:00:00 lightdm --session-child 12 19
    rtkit     1236     1  0 08:07 ?        00:00:00 /usr/lib/rtkit/rtkit-daemon
    root      1245     1  0 08:07 ?        00:00:00 /usr/lib/upower/upowerd
    colord    1275     1  0 08:07 ?        00:00:00 /usr/lib/colord/colord
    geeklee   1308     1  0 08:07 ?        00:00:00 /lib/systemd/systemd --user
    geeklee   1310  1308  0 08:07 ?        00:00:00 (sd-pam)
    geeklee   1316     1  0 08:07 ?        00:00:00 /usr/bin/gnome-keyring-daemon --
    geeklee   1318  1178  0 08:07 ?        00:00:01 /sbin/upstart --user
    geeklee   1436  1318  0 08:07 ?        00:00:00 upstart-udev-bridge --daemon --u
    root      1450   806  0 08:07 ?        00:00:00 /sbin/dhclient -d -q -sf /usr/li
    geeklee   1451  1318  0 08:07 ?        00:00:21 dbus-daemon --fork --session --a
    geeklee   1463  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/hud/wi
    geeklee   1493  1318  0 08:07 ?        00:00:01 upstart-dbus-bridge --daemon --s
    geeklee   1495  1318  0 08:07 ?        00:00:05 upstart-dbus-bridge --daemon --s
    geeklee   1500  1318  0 08:07 ?        00:00:00 upstart-file-bridge --daemon --u
    geeklee   1506  1318  0 08:07 ?        00:00:30 /usr/bin/fcitx
    geeklee   1528  1318  0 08:07 ?        00:00:09 /usr/bin/dbus-daemon --fork --pr
    geeklee   1532  1318  0 08:07 ?        00:00:00 /usr/bin/fcitx-dbus-watcher unix
    geeklee   1533  1318  0 08:07 ?        00:00:00 gpg-agent --homedir /home/geekle
    nobody    1539   806  0 08:07 ?        00:00:05 /usr/sbin/dnsmasq --no-resolv --
    geeklee   1611  1318  0 08:07 ?        00:00:01 /usr/lib/unity-settings-daemon/u
    geeklee   1612  1318  0 08:07 ?        00:00:21 /usr/lib/x86_64-linux-gnu/bamf/b
    geeklee   1622  1318  0 08:07 ?        00:00:17 /usr/lib/x86_64-linux-gnu/hud/hu
    geeklee   1630  1318  0 08:07 ?        00:00:00 /usr/lib/at-spi2-core/at-spi-bus
    geeklee   1631  1318  0 08:07 ?        00:00:00 /usr/lib/gnome-session/gnome-ses
    geeklee   1636  1318  0 08:07 ?        00:00:32 /usr/lib/x86_64-linux-gnu/unity/
    geeklee   1641  1630  0 08:07 ?        00:00:01 /usr/bin/dbus-daemon --config-fi
    geeklee   1648  1318  0 08:07 ?        00:00:06 /usr/lib/at-spi2-core/at-spi2-re
    geeklee   1650  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd
    geeklee   1657  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/us
    geeklee   1669  1611  0 08:07 ?        00:00:00 syndaemon -i 1.0 -t -K -R
    geeklee   1676  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1680  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1682  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1688  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1689  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1691  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1692  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1693  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1724  1318  0 08:07 ?        00:00:00 /usr/bin/pulseaudio --start --lo
    geeklee   1740  1318  0 08:07 ?        00:00:06 /usr/lib/x86_64-linux-gnu/indica
    geeklee   1754  1318  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-sou
    geeklee   1756  1318  0 08:07 ?        00:00:02 /usr/lib/dconf/dconf-service
    geeklee   1780  1318  3 08:07 ?        00:16:13 compiz
    geeklee   1783  1318  0 08:07 ?        00:00:01 /usr/lib/x86_64-linux-gnu/notify
    geeklee   1788  1631  0 08:07 ?        00:00:00 /usr/lib/policykit-1-gnome/polki
    geeklee   1790  1631  0 08:07 ?        00:00:44 nm-applet
    geeklee   1792  1631  0 08:07 ?        00:00:00 /usr/lib/unity-settings-daemon/u
    geeklee   1805  1631  0 08:07 ?        00:01:07 nautilus -n
    geeklee   1806  1631  0 08:07 ?        00:00:07 /usr/bin/gnome-software --gappli
    geeklee   1813  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-udisks2-volum
    root      1820     1  0 08:07 ?        00:00:06 /usr/lib/udisks2/udisksd --no-de
    geeklee   1830  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volum
    geeklee   1836  1318  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-cal
    geeklee   1841  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-mo
    geeklee   1846  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-afc-volume-mo
    geeklee   1852  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-goa-volume-mo
    root      1858     1  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/fwupd/
    geeklee   1871  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd-trash --spaw
    geeklee   1891  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd-metadata
    geeklee   1900  1836  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-cal
    geeklee   1915  1836  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-cal
    geeklee   1926  1318  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-add
    geeklee   1940  1926  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-add
    geeklee   1950  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/gconf/
    geeklee   1964  1318  0 08:07 ?        00:00:01 sogou-qimpanel-watchdog
    geeklee   1966  1318  0 08:07 ?        00:00:37 sogou-qimpanel
    geeklee   2157  1631  0 08:08 ?        00:00:03 zeitgeist-datahub
    geeklee   2164  1318  0 08:08 ?        00:00:00 /bin/sh -c /usr/lib/x86_64-linux
    geeklee   2168  2164  0 08:08 ?        00:00:00 /usr/bin/zeitgeist-daemon
    geeklee   2175  1318  0 08:08 ?        00:00:01 /usr/lib/x86_64-linux-gnu/zeitge
    geeklee   2208  1318  0 08:08 ?        00:00:00 /usr/lib/gvfs/gvfsd-network --sp
    geeklee   2241  1318  0 08:08 ?        00:00:00 /usr/lib/gvfs/gvfsd-dnssd --spaw
    geeklee   2281  1631  0 08:08 ?        00:00:00 update-notifier
    geeklee   2294  1318  0 08:08 ?        00:00:00 /bin/sh /usr/pycharm-2016.2.3/bi
    geeklee   2314  1318  0 08:08 ?        00:00:00 /usr/lib/glib-networking/glib-pa
    geeklee   2360  2294 14 08:08 ?        01:15:23 /usr/pycharm-2016.2.3/bin/../jre
    geeklee   2575  2360  0 08:09 ?        00:00:01 /usr/pycharm-2016.2.3/bin/fsnoti
    geeklee   2683  1631  0 08:09 ?        00:00:00 /usr/lib/x86_64-linux-gnu/deja-d
    geeklee   2713  1318  1 08:10 ?        00:05:04 /usr/lib/gnome-terminal/gnome-te
    root      3016     2  0 08:21 ?        00:00:03 [kworker/3:0]
    geeklee   3648  2713  0 08:47 pts/11   00:00:00 bash
    geeklee   5428  1318  0 09:08 ?        00:00:00 /usr/lib/gvfs/gvfsd-http --spawn
    geeklee   7136  3648 43 09:44 pts/11   03:00:30 python manage.py zhejiang getall
    postgres  7305  1051  0 09:51 ?        00:01:16 postgres: deploy pol_gov_mon 127
    geeklee   7367  2360  1 09:55 ?        00:06:26 /usr/bin/python2.7 /usr/pycharm-
    root      7543     2  0 10:01 ?        00:00:13 [kworker/3:1]
    root      7637     2  0 10:03 ?        00:00:13 [kworker/1:0]
    geeklee   9586  1318  0 11:10 ?        00:00:01 /usr/lib/gvfs/gvfsd-recent --spa
    root      9598     2  0 11:10 ?        00:00:11 [kworker/2:1]
    geeklee   9678  2713  0 11:13 pts/12   00:00:00 bash
    geeklee   9688  9678  0 11:13 pts/12   00:00:01 python manage.py xinjiang getall
    geeklee   9857  9678  0 11:21 pts/12   00:00:38 python manage.py xinjiang getall
    postgres  9869  1051  0 11:21 ?        00:00:01 postgres: deploy pol_gov_mon 127
    root     10927     2  0 12:03 ?        00:00:00 [kworker/1:1]
    geeklee  12382  9678  0 12:56 pts/12   00:00:01 python manage.py xinjiang getall
    geeklee  12403  9678  0 12:56 pts/12   00:00:02 python manage.py xinjiang getall
    geeklee  12464  1318  0 12:58 ?        00:00:00 /usr/lib/x86_64-linux-gnu/unity-
    geeklee  12478  1318  0 12:58 ?        00:00:01 /usr/bin/unity-scope-loader appl
    geeklee  12480  1318  0 12:58 ?        00:00:00 /usr/lib/x86_64-linux-gnu/unity-
    geeklee  13280  9678  0 13:20 pts/12   00:00:03 python manage.py xinjiang getall
    geeklee  13874  1318  0 13:46 ?        00:00:00 /home/geeklee/.lantern/bin/lante
    geeklee  13885 13874  0 13:46 ?        00:00:18 /home/geeklee/.lantern/bin/lante
    geeklee  14225  9678  0 13:55 pts/12   00:00:08 python manage.py xinjiang getall
    geeklee  14257  9678  0 13:57 pts/12   00:00:01 python manage.py xinjiang getall
    geeklee  14274  9678  0 13:57 pts/12   00:00:07 python manage.py xinjiang getall
    root     15640     2  0 14:36 ?        00:00:00 [kworker/0:0]
    geeklee  16156  9678  0 14:41 pts/12   00:00:00 python
    geeklee  17269  1318 16 15:23 ?        00:11:51 /usr/lib/firefox/firefox
    root     17735     2  0 15:30 ?        00:00:01 [kworker/2:2]
    root     19125     2  0 16:11 ?        00:00:06 [kworker/u16:0]
    root     19270     2  0 16:13 ?        00:00:00 [kworker/0:1]
    root     19381     2  0 16:17 ?        00:00:02 [kworker/u16:3]
    geeklee  20147  7136  0 16:30 pts/11   00:00:00 sh -c /usr/bin/libreoffice libre
    geeklee  20148 20147  0 16:30 pts/11   00:00:00 /opt/libreoffice4.2/program/oosp
    geeklee  20170 20148 99 16:30 pts/11   00:05:56 /opt/libreoffice4.2/program/soff
    root     20261     2  0 16:31 ?        00:00:00 [kworker/3:2]
    root     20369     2  0 16:33 ?        00:00:00 [kworker/2:0]
    geeklee  20468  1318  0 16:35 ?        00:00:00 /opt/libreoffice4.2/program/oosp
    root     20483     2  0 16:36 ?        00:00:00 [kworker/u16:1]
    geeklee  20493  2713  0 16:36 pts/0    00:00:00 bash
    geeklee  20506 20493  0 16:36 pts/0    00:00:00 ps -ef
    geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep
    用法: grep [选项]... PATTERN [FILE]...
    试用'grep --help' 来获得更多信息。
    geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice
    geeklee  20147  7136  0 16:30 pts/11   00:00:00 sh -c /usr/bin/libreoffice libreoffice --convert-to xlsx /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/P020150104509470446815.xls --outdir /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/ --headless --invisible
    geeklee  20148 20147  0 16:30 pts/11   00:00:00 /opt/libreoffice4.2/program/oosplash libreoffice --convert-to xlsx /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/P020150104509470446815.xls --outdir /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/ --headless --invisible
    geeklee  20170 20148 99 16:30 pts/11   00:06:30 /opt/libreoffice4.2/program/soffice.bin libreoffice --convert-to xlsx /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/P020150104509470446815.xls --outdir /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/ --headless --invisible
    geeklee  20468  1318  0 16:35 ?        00:00:00 /opt/libreoffice4.2/program/oosplash --calc file:///tmp/mozilla_geeklee0/P020161013401762969006.xlsx
    geeklee  20516 20493  0 16:37 pts/0    00:00:00 grep --color=auto libreoffice
    geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice | awk '{print $2}'
    20147
    20148
    20170
    20468
    20522
    geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice | awk '{print $2}' | xargs - kill -9
    xargs: -: 没有那个文件或目录
    geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice | awk '{print $2}' | xargs kill -9
    批量杀进程libreoffice命令
    geeklee@geeklee-ThinkPad-E420:~$ 
    展开全文
  • centos7 已经配置中文字体,我在使用libreoffice将word转pdf的时候。 命令行执行:libreoffice7.1 --convert-to pdf:writer_pdf_Export ./604c74c57c2b5.docx 转出来的文件正常显示 PHP exec 执行转出来的文件就...

    求助!

     

    centos7 已经配置中文字体,我在使用libreoffice将word转pdf的时候。

    命令行执行:libreoffice7.1 --convert-to pdf:writer_pdf_Export ./604c7476af6dd.docx 转出来的文件正常显示

    PHP exec 执行转出来的文件就中文乱码了。

    网上查到说要先改环境变量也改了,可是还是无法成功显示中文。

    $locale='en_US.UTF-8';
    setlocale(LC_ALL,$locale);
    putenv('LC_ALL='.$locale);
    exec('locale charmap');
    exec('libreoffice7.1 --convert-to pdf:writer_pdf_Export ./604c74c57c2b5.docx');

    第一个命令行执行的正常,第二个PHP exec执行的中文乱码

    有没有大佬碰见过这个问题,怎么处理

    展开全文
  • LibreOffice通过命令方式转pdf

    千次阅读 2018-04-10 01:51:10
    环境:需要装libreOffice软件 package com.demo.libreOffice; import java.io.IOException; public class CommandExecute { public static void main(String[] args) { try { String cmd = "cmd /k start...

    环境:需要装libreOffice软件

    package com.demo.libreOffice;
    import java.io.IOException;
    
    public class CommandExecute {
    
    	public static void main(String[] args) {  
    		try {  
    			String cmd = "cmd /k start soffice --convert-to pdf E:/dianziqianzhang/shujuchuxu.docx --outdir E:/dianziqianzhang";  
    			Runtime runtime = Runtime.getRuntime();
    			Process p = runtime.exec(cmd); 
    			
    			//关闭进程
    			/*if(p != null){
    				p.destroy();
    			}*/
    			
    		} catch (IOException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}
    
    	}
    
    }
    



    展开全文
  • [图片说明](https://img-ask.csdn.net/upload/201706/30/1498809532_529936.png) 找不到该路径的文件,文件错误 (上传到Linux系统的文件错误,建议检查上传工具)
  • libreoffice

    2018-07-11 16:54:00
    # 启动首先,启动端口: 进入dos, cd C:\Program Files (x86)\LibreOffice 5\program启动命令:soffice -headless -accept="socket,port=8100;urp;" --nofirststartwizard 启动命令如下/opt/libreoffice5.0/program/...
  • Libreoffice 启动或重启命令

    万次阅读 2018-03-20 10:21:58
    1、搜索当前运行程序ps -ef|grep openoffice2、杀死正在启动的socket程序kill -9 +port //port 为openoffice的端口3、使用命令重启/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1...
  • import org.apache.commons.io.IOUtils; import java.io.File; import java.io.IOException; import java.io.InputStream;...import java.util.UUID;... * 将word文档通过java调用命令的方式转化成H...
  • LibreOffice 5在Linux下的命令 /opt/libreoffice5.3/program/soffice --convert-to pdf:writer_pdf_Export /home/lims/file/1111111.xlsx --outdir /home/lims/file 或 /opt/libreoffice5.3/program/ soffice --...
  • LibreOffice 拥有所有你想要的办公软件套件的生产力功能,使其成为微软 Office 或谷歌套件的流行...在查看 LibreOffice 命令的一些隐藏功能之前,你需要了解如何使用应用选项。并不是所有的应用都接受选项(除了像--...
  • libreofficeLibreOffice安装测试
  • 从官网下载了LibreOffice包,解压后执行`./install . /tools/opensrc/libreoffice/7.2.1.2`,启动发生报错,请往下看。
  • hadoop]# tar -zxvf LibreOffice_4.4.5_Linux_x86-64_rpm_sdk.tar.gz -C /usr/local/libreoffice/ 3,进入到的RPMS目录 大的文件解压后,里面有两个目录readmes和RPMS,进入RPMS 4,切换到root 权限,执行 rpm -...
  • LibreOffice服务启动

    2018-07-27 23:14:09
    批处理启动LibreOffice服务,用于office文件格式转换。
  • LibreOffice安装

    2016-07-08 22:19:54
    准备安装包 /opt/LibreOffice_4.4.5_Linux_x86-64_rpm.tar.gz 解压安装 安装依赖: yum install cups-libs fontconfig ...执行以下命令: cd /opt tar zxvf LibreOffice_4.4.5_Linux_x86-64_rpm.tar.gz yum ...
  • LibreOffice_Install.py

    2021-10-20 15:43:39
    将脚本上传到LibreOffice的安装包同一路径下,然后执行命令:“python LibreOffice_Install.py 安装包名称”即可。 例我的安装包文件名称叫做LibreOffice_6.0.6_Linux_x86_rpm.tar.gz 那就执行命令:python ...
  • centos安装libreoffice

    2021-07-19 17:17:38
    一、在centos7下安装LibreOffice,可直接使用yum安装即可,在命令行输入以下命令: yum install libreoffice yum install libreoffice-headless 安装完成后,生成的二进制文件所在位置为: /usr/bin/...
  • CentOS Libreoffice使用

    千次阅读 2018-11-06 17:10:38
    1.下载 地址:https://zh-cn.libreoffice.org/download/libreoffice-still/?type=rpm-x86_64&amp;version=6.0&amp;... 下载三个文件: LibreOffice_6.0.7_Linux_x86-64_rpm_sdk.tar.gz ... LibreOffice_6.0...
  • 构建LibreOffice Android

    2021-08-19 17:10:46
    构建LibreOffice Android预览有两种方式,第一种方式就是在master分支上进行构建,但是这种方式构建出来的Android应用程序,界面并没有那么友好,对于只是研究源码的小伙伴来说是一种不错的选择。 如果想要界面友好...
  • linux libreoffice安装使用

    千次阅读 2020-11-20 15:10:23
    1、卸载系统当前的...2、拷贝libreoffice安装包到服务器执行如下命令,解压文件 tar -zxvf LibreOffice_7.0.2_Linux_x86-64_rpm.tar.gz tar -zxvf LibreOffice_7.0.2_Linux_x86-64_rpm_sdk.tar.gz star -zxvf
  • 我已经使用apache在freebsd服务器上安装libreoffice,以便以编程方式转换文档(例如odt-> pdf).它从命令行工作!但是我的目标是能够从php这要求网络用户(www)可以运行libreoffice.但它不能.当我自己的用户运行...
  • Centos7安装libreoffice

    2019-05-15 11:16:17
    安装Centos7之后,系统安装了libreoffice 3.x...执行如下命令: yum remove libreoffice-* 1 为了能使用镜像,在etc 目录之下的hosts文件内加入代理。 注意没有加的话,可能第三步无法操作.可不加。 .208.46.146 www...
  • Ubuntu 16.04卸载LibreOffice

    千次阅读 2018-07-25 07:47:04
    卸载LibreOffice,执行如下一条命令即可:   sudo apt-get remove libreoffice-common   PS:其他软件同理,使用命令sudo apt-get remove &lt;软件名称&gt;来卸载,但是注意可能涉及很多需要卸载的项...
  • ubuntu无法打开libreoffice

    千次阅读 2018-10-12 17:38:10
    使用libreoffice过程中,用命令行无法将docx转换PDF,命令行输入libreoffice无反应,下面是自己是解决办法 1,输入libreoffice,如果提示Failed to open display,则...3,先卸载libreoffice,使用命令sudo apt-...
  • LibreOffice 设置中文界面

    千次阅读 2020-08-08 20:37:30
    在终端输入: sudo apt-get install libreoffice-l10n-zh-cn libreoffice-help-zh-cn ...上面的命令是下载中文包。 再次打开libreoffice就是中文界面了 ubuntu libreOffice设置为中文界面 LibreOffice 设置中文
  • 一、实现代码 : import org.apache.commons.io.IOUtils; import java.io.File; import java.io.IOException;...import java.io.InputStream;... * 将word文档通过java调用命令的方式转化成HTML */ public ...
  • CentOS安装LibreOffice

    2019-02-18 18:20:00
    CentOS安装LibreOffice 查找yum源的安装包$ yum search libreoffice 查看yum源上安转包基本信息$ yum info libreoffice可安装的软件包名称 :libreoffice架构 :x86_64版本 :5.3.6.1 官方版本已到6.2...
  • Linux安装LibreOffice

    2021-10-11 23:10:26
    LibreOffice是一套可与其他主要办公室软件相容的套件,包含6大组件:文本文档【文字处理(word)】,电子表格【计算表(excel)】,演示文稿【简报(powerpoint)】,公式,绘图,资料库【access】。 2、下载 根据...
  • libreoffice_scripts libreoffice的脚本和宏集合 save_as.py 包含save_as_ms97 save_as_msXML save_as_ms save_as_PDF save_as_PDF_HiRes save_as_PDF_600dpi save_as_PDF_75dpi save_as_Multi save_as_All

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 3,360
精华内容 1,344
关键字:

libreoffice命令