可以在没有哈希的情况下对history.js进行URL深层链接吗?(Can history.js to URL deep linking without a hash or ? character?)
这可能是重复的。 我搜索过,但不确定使用哪个术语。 如果你能找到重复的,谢谢,我会删除这个问题。
我听说history.js是“最好的”深度链接ajax库,因为它与旧版浏览器具有最佳兼容性。 但是,我看过这个lib的每个演示都会使用?更改URL。 字符如
/my/url?key=value
或类似的东西。浏览项目的源代码树时,我非常喜欢github上的滑块。 例如,单击文件夹将在浏览器中更改完整URL时异步加载文件夹的内容,而不会出现任何哈希或查询字符串垃圾。
有谁知道是否有图书馆可以完成这项工作? 我并不反对在非html5兼容浏览器中无效的库。 我应该只使用纯HTML5推送状态API吗?
This may be a duplicate. I have searched, but am not sure which terms to use. If you can find a duplicate, thanks, I will delete this question.
I've heard the history.js is the "best" deep linking ajax library because it has the best compatibility for older browsers. However every demo I have seen of this lib changes the URL using a ? character like
/my/url?key=value
or something like that.I really like the slider on github when browsing through the source tree of a project. Clicking a folder for example will load the contents of the folder asynchronously while changing the full URL in the browser, without any hashes or querystring garbage.
Does anyone know if there is a library that accomplishes this? I'm not opposed to a library that would not work in non-html5 compliant browsers. Should I just use the pure HTML5 push state API?
原文:https://stackoverflow.com/questions/9769475
最满意答案
在shell脚本中使用handbrake的CLI客户端,并在最后通过电子邮件发送给您。
像这样的东西:
#/bin/sh handbrake -i /dev/mydev -o myfile > out.txt handbrake -i /dev/mydev2 -o myfile2 >> out.txt handbrake -i /dev/mydev3 -o myfile3 >> out.txt mail -s "done with handbrake" me@domain.com < out.txt
Use handbrake's CLI client in a shell script and have it email you at the end.
Something like this:
#/bin/sh handbrake -i /dev/mydev -o myfile > out.txt handbrake -i /dev/mydev2 -o myfile2 >> out.txt handbrake -i /dev/mydev3 -o myfile3 >> out.txt mail -s "done with handbrake" me@domain.com < out.txt
相关问答
更多-
取消注释ini文件中的sendmail_from设置: sendmail_from = postmaster @ localhost (从头开始删除分号)。 您也可以将postmaster @ localhost更改为您实际希望人们看作是发件人的内容 Uncomment the sendmail_from setting in the ini file: sendmail_from = postmaster@localhost (remove the semicolon from the beginning ...
-
专门为此类任务设计的监控系统将是最佳工具。 例子包括Nagios,Icinga或Zabbix。 但是,如果你真的想用bash来做,这是一种方式。 如果至少有一台主机没有响应ping,它只会发送一封电子邮件。 #!/bin/bash email=xxxxxxxxx@domain.com NBR_DOWN=0 LOGFILE=/tmp/pinglog.txt echo "Connectivity Test Results" > $LOGFILE for i in $(cat ping.txt); do ...
-
如何在Handbrake完成后使用shell脚本来发送电子邮件?(How can I use shell scripting to send an email when Handbrake gets done?)[2022-04-27]
在shell脚本中使用handbrake的CLI客户端,并在最后通过电子邮件发送给您。 像这样的东西: #/bin/sh handbrake -i /dev/mydev -o myfile > out.txt handbrake -i /dev/mydev2 -o myfile2 >> out.txt handbrake -i /dev/mydev3 -o myfile3 >> out.txt mail -s "done with handbrake" me@domain.com < out.txt Us ... -
您必须导出smtp变量,否则mailx将无法看到它。 喜欢这个: #!/bin/sh SUBJECT="some subject" export smtp=10.233.1.199 EMAIL=abc@xyz.com echo "some message" | mailx -s "$SUBJECT" "$EMAIL" 顺便说一句smtp变量在我的系统中的man mailx中没有提到,也没有在我有权访问的另一个Linux系统中提到。 但是我发现它在superuser.com上的回答中提到过。 也就是说,我 ...
-
也可以使用sendmail命令: sendmail user@example.com < email.txt 使用mail命令: mail -a mail.txt -s "This is the failed job log" user@example.com -a是附件, -s是主题 并附有许多附件: $(uuencode file1.txt file2.txt) | mailx -s "Subject" user@example.com Also it's possible using send ...
-
Handbrake附带一个命令行程序(默认路径= C:\ Program Files \ HandBrake \ HandBrakeCLI.exe) 与试图制作宏与Handbrake的GUI版本进行交互可能是您最好的选择。 如果您只想一次执行一个简单的DOS批处理脚本,您可以拖放文件: 1)打开记事本 2)粘贴以下文本: “C:\ Program Files \ HandBrake \ HandBrakeCLI.exe”-i%1 -o%1.mp4 -e x264 -b 2000 -B 128 -X 480 ...
-
Hy,我已经尝试过询问,这可以成功发送电子邮件,而无需在settings.py中进行任何设置 首先,添加这两个导入 import smtplib from email.mime.text import MIMEText as text 然后发送电子邮件的代码可能是这样的 def send_email(sender,receiver,message,subject): sender = sender receivers = receiver m = text(message) ...
-
键入以下命令:telnet example.com 25查看结果: 如果端口25未被阻止,您将获得成功的220响应(文本可能会有所不同)。 尝试64.13.192.208 ...连接到example.com。 逃脱角色是'^]'。 220 cl34.gs01.gridserver.com ESMTP Exim 4.63星期二,2008年6月24日13:45:04 -0700 如果端口25被阻止,您将收到连接错误或根本没有响应。 尝试64.13.192.208 ... telnet:连接到地址64.13.19 ...
-
在power shell脚本中通过outlook发送电子邮件时出错(Error while sending email through outlook in power shell script)[2022-01-10]
在调用$mail.Send()方法后,您可能需要重新创建邮件对象。 您可以通过将对象创建放在循环中来完成此操作。 $ChkFile = "D:\ErrorLog\*.err" $ChkFilePath = "D:\ErrorLog" $o = New-Object -comObject Outlook.Application $FileExists = Test-Path $ChkFile $FileCount = Get-ChildItem $ChkFilePath *.err | Measure-Obj ... -
您正在回显未设置的变量$DataFunction (写入${DataFunction} ),而不是调用该函数。 你应该使用: DataFunction | mail -s Title Bob@123.com 您可能一直在尝试使用: echo $(DataFunction) | mail -s Title Bob@123.com 但由于几个原因,这是错误的。 主要问题是它将DataFunction函数的10行输出转换为单行输入到mail 。 如果将$(DataFunction)括在双引号中,那将保留输入的 ...